File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ def get_extension_config(self) -> str:
343
343
def get_feature_sets (self ) -> dict [str , list [str ]]:
344
344
# This is only called from dt-sdk run, where PyYaml is installed because of dt-cli
345
345
# Do NOT move this to the top of the file
346
- import yaml # type: ignore
346
+ import yaml # noqa: PLC0415
347
347
348
348
# Grab the feature sets from the extension.yaml file
349
349
extension_yaml = yaml .safe_load (self .extension_config )
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ class Extension:
184
184
185
185
def __new__ (cls , * args , ** kwargs ): # noqa: ARG004
186
186
if Extension ._instance is None :
187
- Extension ._instance = super (__class__ , cls ).__new__ (cls )
187
+ Extension ._instance = super ().__new__ (cls )
188
188
return Extension ._instance
189
189
190
190
def __init__ (self , name : str = "" ) -> None :
@@ -683,7 +683,7 @@ def report_dt_event_dict(self, event: dict):
683
683
msg = f"Event type must be a DtEventType enum value, got: { value } "
684
684
raise ValueError (msg )
685
685
if key == "properties" :
686
- for prop_key , prop_val in event [ key ] .items ():
686
+ for prop_key , prop_val in value .items ():
687
687
if not isinstance (prop_key , str ) or not isinstance (prop_val , str ):
688
688
msg = f'invalid "properties" member: { prop_key } : { prop_val } , required: "str": str'
689
689
raise ValueError (msg )
Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ def __repr__(self):
114
114
def __eq__ (self , other ):
115
115
return isinstance (other , EndpointStatus ) and self .__dict__ == other .__dict__
116
116
117
+ def __hash__ (self ):
118
+ return hash ((self .endpoint , self .status , self .message ))
119
+
117
120
118
121
class EndpointStatuses :
119
122
def __init__ (self , total_endpoints_number = None ) -> None :
You can’t perform that action at this time.
0 commit comments