You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The device CLI has many duplicates of the fields tuple and similarly reuses the same tuple of attributes often. These variables could be part of base classes similar to the pattern used for the arguments property in combination with the _arguments variable.
classExample(metaclass=abc.ABCMeta):
"""Arguments property is extensible by child classes"""_arguments=None@propertydefarguments(self):
ifself._argumentsisNone:
self._arguments=dict()
self._arguments.update({
'--id': Argument(
'-i', help="Example argument attribute",
type=int)
})
returnself._arguments
The text was updated successfully, but these errors were encountered:
The device CLI has many duplicates of the
fields
tuple and similarly reuses the same tuple of attributes often. These variables could be part of base classes similar to the pattern used for thearguments
property in combination with the_arguments
variable.The text was updated successfully, but these errors were encountered: