-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: typos in models #164
fix: typos in models #164
Conversation
…Optional[Achievement] = None # typo achievment and in common.py Achievement(BaseModel) description: str # typo desciption
for more information, see https://pre-commit.ci
… can be null. Example is the achievement: Autocreation that has a gamemode of null
aiosu/models/event.py
Outdated
@@ -65,7 +65,7 @@ class Event(BaseModel): | |||
type: EventType | |||
r"""Information on types: https://github.com/ppy/osu-web/blob/master/resources/assets/lib/interfaces/event-json.ts""" | |||
parse_error: Optional[bool] = None | |||
achievment: Optional[Achievement] = None | |||
achievement: Optional[Achievement] = None # typo achievment |
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.
Please do not add comments like these to the code
aiosu/models/common.py
Outdated
@@ -46,10 +46,10 @@ class Achievement(BaseModel): | |||
id: int | |||
name: str | |||
slug: str | |||
desciption: str | |||
description: str # typo desciption |
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.
Same as above
.pre-commit-config.yaml
Outdated
@@ -42,4 +42,4 @@ repos: | |||
- id: poetry-check | |||
|
|||
default_language_version: | |||
python: python3.9 | |||
python: python3.11 |
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.
Do not do unrelated changes in prs
.gitignore
Outdated
@@ -26,7 +26,8 @@ share/python-wheels/ | |||
.installed.cfg | |||
*.egg | |||
MANIFEST | |||
|
|||
.gitigonre |
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.
Do not do unrelated changes in prs
Could be worth re-cross checking types with osu-web. https://github.com/ppy/osu-web/tree/master/app/Models Either way I appreciate that you went out of your time to check these issues. |
I went ahead and fixed the issues myself. Read through the changes I have made in case you wish to see the direction to take PRs in the future. (also, as a future note I recommend reading https://towardsdatascience.com/why-good-codes-dont-need-comments-92f58de19ad2) |
Thanks alot for the informations, indeed it was my first pull request ever. So im looking forward to learn the correct patterns and rules for prs. |
* Changed: event.py Fixed typo errors in Event(BaseModel) achievement: Optional[Achievement] = None # typo achievment and in common.py Achievement(BaseModel) description: str # typo desciption * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed: Achievement class parameter mode is a optional Field, possible can be null. Example is the achievement: Autocreation that has a gamemode of null * chore: remove unrelated changes in .gitignore * chore: revert unrelated change * Update .gitignore * chore: fix pr * chore: fix pr --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: NiceAesth <[email protected]>
event.py Optional[Achievement] = None # typo achievment
common.py Achievement(BaseModel)
Example for Achievement that has a null as gamemode
Self-check