From 5a13796ffad9259b71bbe4b42a0b31fe4bf80b5f Mon Sep 17 00:00:00 2001 From: peterstone2017 Date: Sat, 30 Apr 2022 23:50:05 -0500 Subject: [PATCH] replace abstractclassmethod with abstract/class method --- azure/functions/meta.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/azure/functions/meta.py b/azure/functions/meta.py index 3e597185..2ca92563 100644 --- a/azure/functions/meta.py +++ b/azure/functions/meta.py @@ -375,26 +375,31 @@ def _parse_timedelta_internal( class InConverter(_BaseConverter, binding=None): - @abc.abstractclassmethod + @classmethod + @abc.abstractmethod def check_input_type_annotation(cls, pytype: type) -> bool: pass - @abc.abstractclassmethod + @classmethod + @abc.abstractmethod def decode(cls, data: Datum, *, trigger_metadata) -> Any: raise NotImplementedError - @abc.abstractclassmethod + @classmethod + @abc.abstractmethod def has_implicit_output(cls) -> bool: return False class OutConverter(_BaseConverter, binding=None): - @abc.abstractclassmethod + @classmethod + @abc.abstractmethod def check_output_type_annotation(cls, pytype: type) -> bool: pass - @abc.abstractclassmethod + @classmethod + @abc.abstractmethod def encode(cls, obj: Any, *, expected_type: Optional[type]) -> Optional[Datum]: raise NotImplementedError