
from UM.Settings.Models.SettingVisibilityHandler import SettingVisibilityHandler

class MaterialSettingsVisibilityHandler(SettingVisibilityHandler):
    def __init__(self, parent = None, *args, **kwargs):
        super().__init__(parent = parent, *args, **kwargs)

        material_settings = {
            "default_material_print_temperature",
            "material_bed_temperature",
            "material_standby_temperature",
            "cool_fan_speed",
            "retraction_amount",
            "retraction_speed",
        }

        self.setVisible(material_settings)


import UM.Settings.Models.SettingVisibilityHandler

class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler):
    def __init__(self, parent = None, *args, **kwargs):
        super().__init__(parent = parent, *args, **kwargs)

        material_settings = {
            "default_material_print_temperature",
            "material_bed_temperature",
            "material_standby_temperature",
            "cool_fan_speed",
            "retraction_amount",
            "retraction_speed",
        }

        self.setVisible(material_settings)

Use full import path for parent class
Use full import path for parent class

Something seems off with the build for some reason. I'm trying to fix it this way.

  
- from UM.Settings.Models.SettingVisibilityHandler import SettingVisibilityHandler
+ import UM.Settings.Models.SettingVisibilityHandler
  
- class MaterialSettingsVisibilityHandler(SettingVisibilityHandler):
+ class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler):
      def __init__(self, parent = None, *args, **kwargs):
          super().__init__(parent = parent, *args, **kwargs)
  
          material_settings = {
              "default_material_print_temperature",
              "material_bed_temperature",
              "material_standby_temperature",
              "cool_fan_speed",
              "retraction_amount",
              "retraction_speed",
          }
  
          self.setVisible(material_settings)
  
Use full import path for parent class
## Code Before:

from UM.Settings.Models.SettingVisibilityHandler import SettingVisibilityHandler

class MaterialSettingsVisibilityHandler(SettingVisibilityHandler):
    def __init__(self, parent = None, *args, **kwargs):
        super().__init__(parent = parent, *args, **kwargs)

        material_settings = {
            "default_material_print_temperature",
            "material_bed_temperature",
            "material_standby_temperature",
            "cool_fan_speed",
            "retraction_amount",
            "retraction_speed",
        }

        self.setVisible(material_settings)

## Instruction:
Use full import path for parent class
## Code After:

import UM.Settings.Models.SettingVisibilityHandler

class MaterialSettingsVisibilityHandler(UM.Settings.Models.SettingVisibilityHandler.SettingVisibilityHandler):
    def __init__(self, parent = None, *args, **kwargs):
        super().__init__(parent = parent, *args, **kwargs)

        material_settings = {
            "default_material_print_temperature",
            "material_bed_temperature",
            "material_standby_temperature",
            "cool_fan_speed",
            "retraction_amount",
            "retraction_speed",
        }

        self.setVisible(material_settings)
