From 036107995c19b8e0246061de26cb6173f91340e6 Mon Sep 17 00:00:00 2001 From: mike-gangl Date: Thu, 9 May 2024 09:34:06 -0700 Subject: [PATCH] added '# noqa: F821' to AnyOf lines to bypass pyflake errors detailed 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. --- unity_sps_ogc_processes_api_python_client/models/execute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unity_sps_ogc_processes_api_python_client/models/execute.py b/unity_sps_ogc_processes_api_python_client/models/execute.py index 6ec2820..76152c2 100644 --- a/unity_sps_ogc_processes_api_python_client/models/execute.py +++ b/unity_sps_ogc_processes_api_python_client/models/execute.py @@ -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