Skip to content
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

Make AsyncTransport and Transport proper abstract base classes #350

Merged
merged 2 commits into from
Aug 5, 2022
Merged

Conversation

willfrey
Copy link
Contributor

@willfrey willfrey commented Aug 4, 2022

The @abc.abstractmethod decorator requires that the class’s metaclass be abc.ABCMeta or derived from it. Usually this is satisfied by inherit from abc.ABC.

See: https://docs.python.org/3/library/abc.html#abc.abstractmethod

The `@abc.abstractmethod` decorator requires that the class’s metaclass be `abc.ABCMeta` or derived from it. Usually this is satisfied by inherit from `abc.ABC`.

See: https://docs.python.org/3/library/abc.html#abc.abstractmethod
@codecov-commenter
Copy link

codecov-commenter commented Aug 4, 2022

Codecov Report

Merging #350 (1842969) into master (a7f7649) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #350   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines         2243      2243           
=========================================
  Hits          2243      2243           
Impacted Files Coverage Δ
gql/transport/async_transport.py 100.00% <100.00%> (ø)
gql/transport/transport.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@leszekhanusz
Copy link
Collaborator

Thanks, Well spotted!
Could you please add another commit here with the same modification for the Transport class?

Make `Transport` inherit from `abc.ABC`.
@willfrey willfrey changed the title Make AsyncTransport a proper abstract base class Make AsyncTransport and Transport proper abstract base classes Aug 5, 2022
@leszekhanusz leszekhanusz merged commit e73096f into graphql-python:master Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants