Skip to content

Commit

Permalink
added '# noqa: F821' to AnyOf lines to bypass pyflake errors detailed…
Browse files Browse the repository at this point in the history
… at https://stackoverflow.com/questions/67547135/why-does-flake8-give-the-warning-f821-undefined-name-match-when-using-match

our version of pyflake might be ~2.5 which is right around when a fix was introduced. i'm not necessarily worried about this issue but i hate flake workarounds.
  • Loading branch information
mike-gangl committed May 9, 2024
1 parent 82a6ca1 commit 0361079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unity_sps_ogc_processes_api_python_client/models/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)

_obj = cls.model_validate({
"inputs": AnyOf.from_dict(obj["inputs"]) if obj.get("inputs") is not None else None,
"outputs": AnyOf.from_dict(obj["outputs"]) if obj.get("outputs") is not None else None,
"inputs": AnyOf.from_dict(obj["inputs"]) if obj.get("inputs") is not None else None, # noqa: F821
"outputs": AnyOf.from_dict(obj["outputs"]) if obj.get("outputs") is not None else None, # noqa: F821
"subscriber": Subscriber.from_dict(obj["subscriber"]) if obj.get("subscriber") is not None else None
})
return _obj
Expand Down

0 comments on commit 0361079

Please sign in to comment.