@@ -94,7 +94,7 @@ def __init__(self, my_config_key)
9494"""
9595
9696import logging
97- from typing import Any , Dict , Set , Text , Type , Union
97+ from typing import Any , Dict , Text , Type , Union
9898
9999import attr
100100
@@ -128,17 +128,17 @@ def tearDown(self):
128128 via TestApi.
129129 """
130130 # Override this to True in subclasses to support remote Plug access.
131- enable_remote = False # type: bool
131+ enable_remote : bool = False
132132 # Allow explicitly disabling remote access to specific attributes.
133- disable_remote_attrs = set () # type: Set[Text]
133+ disable_remote_attrs = set ()
134134 # Override this to True in subclasses to support using with_plugs with this
135135 # plug without needing to use placeholder. This will only affect the classes
136136 # that explicitly define this; subclasses do not share the declaration.
137- auto_placeholder = False # type: bool
137+ auto_placeholder : bool = False
138138 # Default logger to be used only in __init__ of subclasses.
139139 # This is overwritten both on the class and the instance so don't store
140140 # a copy of it anywhere.
141- logger = _LOG # type : logging.Logger
141+ logger : logging .Logger = _LOG
142142
143143 @util .classproperty
144144 def placeholder (cls ) -> 'PlugPlaceholder' : # pylint: disable=no-self-argument
@@ -185,7 +185,7 @@ class FrontendAwareBasePlug(BasePlug, util.SubscribableStateMixin):
185185 Since the Station API runs in a separate thread, the _asdict() method of
186186 frontend-aware plugs should be written with thread safety in mind.
187187 """
188- enable_remote = True # type: bool
188+ enable_remote : bool = True
189189
190190
191191@attr .s (slots = True , frozen = True )
0 commit comments