-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: adds permissions find, find_one, and update #145
Conversation
☂️ Python Coverage
Overall Coverage
New Files
Modified Files
|
class Resources(ABC, Generic[T]): | ||
@abstractmethod | ||
def create(self, *args, **kwargs) -> T: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def delete(self, *args, **kwargs) -> None: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def find(self, *args, **kwargs) -> List[T]: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def find_one(self, *args, **kwargs) -> Optional[T]: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def get(self, *args, **kwargs) -> T: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def update(self, *args, **kwargs) -> T: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def count(self, *args, **kwargs) -> int: | ||
raise NotImplementedError() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can cherry-pick this out if needed. I'm realizing that not all API endpoints can support every one of these methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me to leave it here (and I'm always happy about deleting code 😂 )
Resolves #101