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

The Witness: mypy compliance #3112

Merged
merged 18 commits into from
Jul 2, 2024
Merged

Conversation

NewSoupVi
Copy link
Member

@NewSoupVi NewSoupVi commented Apr 7, 2024

There are two remaining errors I cannot solve without touching core (I believe).

worlds\witness\options.py:3: error: Skipping analyzing "schema": module is installed, but missing library stubs or py.typed marker  [import-untyped]
worlds\witness\hints.py:553: error: Call to untyped function "get_locations" in typed context  [no-untyped-call]

This PR will be drafted for now until the mypy PR is merged / rejected / finalised.

@NewSoupVi NewSoupVi marked this pull request as draft April 7, 2024 21:33
@github-actions github-actions bot added the affects: core Issues/PRs that touch core and may need additional validation. label Apr 7, 2024
@NewSoupVi NewSoupVi added the is: refactor/cleanup Improvements to code/output readability or organizization. label Apr 7, 2024
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Apr 7, 2024
@NewSoupVi NewSoupVi added waiting-on: other Issue/PR is waiting for something else, like another PR. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. and removed waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Apr 7, 2024
@NewSoupVi
Copy link
Member Author

NewSoupVi commented Apr 8, 2024

Update: Probably won't actually add my world to the list of files because the remaining errors are with core and the strategy seems to be "If there's something wrong with core that is stopping you from being mypy compliant, hopefully that'll motivate you to go and add typing to core", which it does not, for me. :D

I'll still try to get this merged because I think it makes the Witness apworld better.

@Exempt-Medic Exempt-Medic added the waiting-on: author Issue/PR is waiting for feedback or changes from its author. label Apr 11, 2024
@NewSoupVi NewSoupVi added waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. and removed affects: core Issues/PRs that touch core and may need additional validation. waiting-on: author Issue/PR is waiting for feedback or changes from its author. waiting-on: other Issue/PR is waiting for something else, like another PR. labels Apr 11, 2024
@NewSoupVi NewSoupVi marked this pull request as ready for review April 11, 2024 23:35
Copy link
Collaborator

@Exempt-Medic Exempt-Medic left a comment

Choose a reason for hiding this comment

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

Changes LGTM. Compared generations before and after, had two questions about new code that were addressed. The new errors are reachable and work properly.

@NewSoupVi NewSoupVi merged commit 93617fa into ArchipelagoMW:main Jul 2, 2024
17 checks passed
GameWyrm pushed a commit to GameWyrm/Archipelago-GW that referenced this pull request Jul 4, 2024
* Make witness apworld mostly pass mypy

* Fix all remaining mypy errors except the core ones

* I'm a goofy stupid poopoo head

* Two more fixes

* ruff after merge

* Mypy for new stuff

* Oops

* Stricter ruff rules (that I already comply with :3)

* Deprecated ruff thing

* wait no i lied

* lol super nevermind

* I can actually be slightly more specific

* lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. is: refactor/cleanup Improvements to code/output readability or organizization. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants