-
Notifications
You must be signed in to change notification settings - Fork 14
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
Group #4 #14
base: main
Are you sure you want to change the base?
Group #4 #14
Conversation
…BookTypeStatic defined somewherelse.
def borrow_book(self) -> "BorrowedBook": | ||
if self.can_borrow(): | ||
if self._book_type == "Paper": | ||
if BookTypeProcessor.book_check_reqrd(self): |
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.
In my opinion, the readability of the if statement decreased here. You could follow the prefix pattern (is
should
need
etc) for methods returning a bool.
firstname: str | ||
lastname: str | ||
_firstname: str | ||
_lastname: str | ||
|
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.
To make the code symmetric, you could additionally declare _uid as a member variable here.
Library System refactoring