Skip to content

typing: add check_untyped_defs#5409

Merged
aciba90 merged 3 commits into
canonical:mainfrom
aciba90:check_untyped_defs
Jun 25, 2024
Merged

typing: add check_untyped_defs#5409
aciba90 merged 3 commits into
canonical:mainfrom
aciba90:check_untyped_defs

Conversation

@aciba90
Copy link
Copy Markdown
Contributor

@aciba90 aciba90 commented Jun 18, 2024

Proposed Commit Message

typing: add check_untyped_defs
    
Add the lint to check bodies of untyped definitions[1] which is enabled
by default in mypy v1.0.0[2].
   
Disable modules that do not pass this check with the intention to fix
them in the future but not add new modules or make the lint not pass for
already passing ones.
    
Rerefences:
[1] https://mypy.readthedocs.io/en/stable/config_file.html#confval-check_untyped_defs
[2] https://github.com/pandas-dev/pandas/commit/20e4c186191859dcde2437edacaee43d8d34dc46

Additional Context

Test Steps

Checklist

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

One inline nit, but otherwise LGTM!

Comment thread pyproject.toml
Copy link
Copy Markdown
Contributor

@a-dubs a-dubs left a comment

Choose a reason for hiding this comment

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

Changes look good. Should we create an issue referencing this for future work needed to get this enabled on all modules?

aciba90 added a commit to aciba90/cloud-init that referenced this pull request Jun 25, 2024
Add the lint to check bodies of untyped definitions[1] which is enabled
by default in mypy v1.0.0[2].

Disable modules that do not pass this check with the intention to fix
them in the future but not add new modules or make the lint not pass for
already passing ones.

Rerefences:
[1] https://mypy.readthedocs.io/en/stable/config_file.html#confval-check_untyped_defs
[2] pandas-dev/pandas@20e4c18
aciba90 added a commit to aciba90/cloud-init that referenced this pull request Jun 25, 2024
@aciba90 aciba90 force-pushed the check_untyped_defs branch from 52f0db8 to ee3959f Compare June 25, 2024 09:16
aciba90 added 2 commits June 25, 2024 11:17
Add the lint to check bodies of untyped definitions[1] which is enabled
by default in mypy v1.0.0[2].

Disable modules that do not pass this check with the intention to fix
them in the future but not add new modules or make the lint not pass for
already passing ones.

Rerefences:
[1] https://mypy.readthedocs.io/en/stable/config_file.html#confval-check_untyped_defs
[2] pandas-dev/pandas@20e4c18
@aciba90 aciba90 merged commit ffe8236 into canonical:main Jun 25, 2024
aciba90 added a commit that referenced this pull request Jun 25, 2024
Add the lint to check bodies of untyped definitions[1] which is enabled
by default in mypy v1.0.0[2].

Disable modules that do not pass this check with the intention to fix
them in the future but not add new modules or make the lint not pass for
already passing ones.

Rerefences:
[1] https://mypy.readthedocs.io/en/stable/config_file.html#confval-check_untyped_defs
[2] pandas-dev/pandas@20e4c18
@aciba90 aciba90 deleted the check_untyped_defs branch June 25, 2024 09:50
holmanb pushed a commit that referenced this pull request Jun 28, 2024
Add the lint to check bodies of untyped definitions[1] which is enabled
by default in mypy v1.0.0[2].

Disable modules that do not pass this check with the intention to fix
them in the future but not add new modules or make the lint not pass for
already passing ones.

Rerefences:
[1] https://mypy.readthedocs.io/en/stable/config_file.html#confval-check_untyped_defs
[2] pandas-dev/pandas@20e4c18
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.

3 participants