Skip to content

replace abstractclassmethod with abstract/class method #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions azure/functions/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down