@property
def GetURLLabel(self):
return self._URLLabel
# Setter methods
@URLLabel.setter
def SetURLLabel(self, value):
if isinstance(value, str):
self._URLLabel = value
else:
raise ValueError("Must be a string")
I get the error:
"URLLabel" is not defined
PylancereportUndefinedVariable
(function) URLLabel: Any
Here is the object code:
class SSLSite:
def __init__(self, URLLabel, x, x, ...):
self._URLLabel = URLLabel
I am working to set the value of the properties, and URLLabel is one of them.
As you can see here you need to declare
@propertybefore ofsetter. Try do this: