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

Update mypy #3210

Merged
merged 3 commits into from
Apr 24, 2023
Merged

Update mypy #3210

merged 3 commits into from
Apr 24, 2023

Conversation

Lingepumpe
Copy link
Contributor

@Lingepumpe Lingepumpe commented Apr 21, 2023

/!\ PR contains autogenerated code, please review the commits individually, the automatic adjustments are confined to the last commit /!\

Currently we have a old version of mypy pinned in requirements-dev. This is because after mypy 0.982, the "implicit Optional" was removed, so you can no longer do "x: int = None", you must do "x: Optional[int] = None". This produces lots of errors to fix, but there is a tool that mypy recommends to automatically fix your codebase, which I applied in this PR:
https://github.com/hauntsaninja/no_implicit_optional

  • mypy==0.982
  • mypy>=1.2.0

@alanakbik
Copy link
Collaborator

@Lingepumpe thanks for improving this!

@alanakbik alanakbik merged commit 0991718 into flairNLP:master Apr 24, 2023
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