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

Remove generic meta class from resource and async resource classes #490

Merged
merged 3 commits into from Aug 16, 2021

Conversation

rmk135
Copy link
Member

@rmk135 rmk135 commented Aug 16, 2021

No description provided.

@rmk135 rmk135 self-assigned this Aug 16, 2021
@coveralls
Copy link

coveralls commented Aug 16, 2021

Coverage Status

Coverage increased (+0.05%) to 94.187% when pulling 961e982 on 488-Fix-resource-generic-typing into 48df949 on develop.

@@ -31,7 +18,7 @@ def shutdown(self, resource: T) -> None:
...


class AsyncResource(Generic[T], metaclass=ResourceMeta):
class AsyncResource(Generic[T]):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still not need to inherit from abc.ABC?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm... It probably needs to. I didn't have a test for unimplemented abc methods. I'll revise this later today. Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returned abc.ABCMeta inheritance and added tests in 1163ac5. I should be more watchful. Thanks for pointing out the issue.



class Resource(Generic[T], metaclass=ResourceMeta):
class Resource(Generic[T]):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still not need to inherit from abc.ABC?

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.

None yet

3 participants