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

Fix mypy typing issues #136

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Fix mypy typing issues #136

merged 3 commits into from
Jun 17, 2024

Conversation

BryceStevenWilley
Copy link
Contributor

Numpy 2.0 released and can cause some potential issues, so restrict to 1.x.y for now.

  • docx.Document is a constructor function, docx.document.Document is the type itself
  • Some unused weirdness in get_possible_radios popped up: the function is untested, so I fixed the typing issues

If this passes, I'll merge and then merge some fixes into pdf_content_extract and #134.

Numpy 2.0 released and can cause some potential issues, so restrict to
1.x.y for now.

* `docx.Document` is a constructor function, `docx.document.Document` is
  the type itself
* Some unused weirdness in `get_possible_radios` popped up: the function
  is untested, so I fixed the typing issues
@nonprofittechy
Copy link
Member

Mypy looks good now, nice! Does the build failure need a look?

@BryceStevenWilley
Copy link
Contributor Author

BryceStevenWilley commented Jun 17, 2024

Does the build failure need a look?

See #135, I'm cooking up a fix in ALActions (SuffolkLITLab/ALActions#25 and SuffolkLITLab/ALActions#26) that I think should solve it and not mess with anything else.

BryceStevenWilley added a commit to SuffolkLITLab/ALActions that referenced this pull request Jun 17, 2024
Use the build-constraints.txt file when building all repos, to avoid
using numpy 2 which can break spacy.

Continues on the work done in #25. 

---

Tested on SuffolkLITLab/FormFyxer#136.
@BryceStevenWilley BryceStevenWilley merged commit 421f514 into main Jun 17, 2024
3 checks passed
@BryceStevenWilley BryceStevenWilley deleted the fix_mypy branch June 17, 2024 02:03
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.

2 participants