Skip to content

Commit 5a13796

Browse files
author
peterstone2017
committed
replace abstractclassmethod with abstract/class method
1 parent ff3d9aa commit 5a13796

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

azure/functions/meta.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,26 +375,31 @@ def _parse_timedelta_internal(
375375

376376
class InConverter(_BaseConverter, binding=None):
377377

378-
@abc.abstractclassmethod
378+
@classmethod
379+
@abc.abstractmethod
379380
def check_input_type_annotation(cls, pytype: type) -> bool:
380381
pass
381382

382-
@abc.abstractclassmethod
383+
@classmethod
384+
@abc.abstractmethod
383385
def decode(cls, data: Datum, *, trigger_metadata) -> Any:
384386
raise NotImplementedError
385387

386-
@abc.abstractclassmethod
388+
@classmethod
389+
@abc.abstractmethod
387390
def has_implicit_output(cls) -> bool:
388391
return False
389392

390393

391394
class OutConverter(_BaseConverter, binding=None):
392395

393-
@abc.abstractclassmethod
396+
@classmethod
397+
@abc.abstractmethod
394398
def check_output_type_annotation(cls, pytype: type) -> bool:
395399
pass
396400

397-
@abc.abstractclassmethod
401+
@classmethod
402+
@abc.abstractmethod
398403
def encode(cls, obj: Any, *,
399404
expected_type: Optional[type]) -> Optional[Datum]:
400405
raise NotImplementedError

0 commit comments

Comments
 (0)