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

chore(dependencies): update dependency mypy to v1 #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mypy (changelog) ^0.931 -> ^1.14.1 age adoption passing confidence

Release Notes

python/mypy (mypy)

v1.14.1

Compare Source

v1.14.0

Compare Source

v1.13.0

Compare Source

v1.12.1

Compare Source

  • Fix crash when showing partially analyzed type in error message (Ivan Levkivskyi, PR 17961)
  • Fix iteration over union (when self type is involved) (Shantanu, PR 17976)
  • Fix type object with type var default in union context (Jukka Lehtosalo, PR 17991)
  • Revert change to os.path stubs affecting use of os.PathLike[Any] (Shantanu, PR 17995)

v1.12.0

Compare Source

v1.11.2

Compare Source

  • Alternative fix for a union-like literal string (Ivan Levkivskyi, PR 17639)
  • Unwrap TypedDict item types before storing (Ivan Levkivskyi, PR 17640)

v1.11.1

Compare Source

  • Fix RawExpressionType.accept crash with --cache-fine-grained (Anders Kaseorg, PR 17588)
  • Fix PEP 604 isinstance caching (Shantanu, PR 17563)
  • Fix typing.TypeAliasType being undefined on python < 3.12 (Nikita Sobolev, PR 17558)
  • Fix types.GenericAlias lookup crash (Shantanu, PR 17543)

v1.11.0

Compare Source

v1.10.1

Compare Source

  • Fix error reporting on cached run after uninstallation of third party library (Shantanu, PR 17420)

v1.10.0

Compare Source

v1.9.0

Compare Source

v1.8.0

Compare Source

v1.7.1

Compare Source

v1.7.0

Compare Source

v1.6.1

Compare Source

v1.6.0

Compare Source

v1.5.1

Compare Source

v1.5.0

Compare Source

v1.4.1

Compare Source

v1.4.0

Compare Source

v1.3.0

Compare Source

v1.2.0

Compare Source

v1.1.1

Compare Source

Monday, 6 March 2023

We’ve just uploaded mypy 1.1.1 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Support for `dataclass_transform``

This release adds full support for the dataclass_transform decorator defined in PEP 681. This allows decorators, base classes, and metaclasses that generate a __init__ method or other methods based on the properties of that class (similar to dataclasses) to have those methods recognized by mypy.

This was contributed by Wesley Collin Wright.

Dedicated Error Code for Method Assignments

Mypy can’t safely check all assignments to methods (a form of monkey patching), so mypy generates an error by default. To make it easier to ignore this error, mypy now uses the new error code method-assign for this. By disabling this error code in a file or globally, mypy will no longer complain about assignments to methods if the signatures are compatible.

Mypy also supports the old error code assignment for these assignments to prevent a backward compatibility break. More generally, we can use this mechanism in the future if we wish to split or rename another existing error code without causing backward compatibility issues.

This was contributed by Ivan Levkivskyi (PR 14570).

Fixes to Crashes
  • Fix a crash on walrus in comprehension at class scope (Ivan Levkivskyi, PR 14556)
  • Fix crash related to value-constrained TypeVar (Shantanu, PR 14642)
Fixes to Cache Corruption
  • Fix generic TypedDict/NamedTuple caching (Ivan Levkivskyi, PR 14675)
Mypyc Fixes and Improvements
  • Raise "non-trait base must be first..." error less frequently (Richard Si, PR 14468)
  • Generate faster code for bool comparisons and arithmetic (Jukka Lehtosalo, PR 14489)
  • Optimize _(a)enter__/_(a)exit__ for native classes (Jared Hance, PR 14530)
  • Detect if attribute definition conflicts with base class/trait (Jukka Lehtosalo, PR 14535)
  • Support __(r)divmod__ dunders (Richard Si, PR 14613)
  • Support __pow__, __rpow__, and __ipow__ dunders (Richard Si, PR 14616)
  • Fix crash on star unpacking to underscore (Ivan Levkivskyi, PR 14624)
  • Fix iterating over a union of dicts (Richard Si, PR 14713)
Fixes to Detecting Undefined Names (used-before-def)
  • Correctly handle walrus operator (Stas Ilinskiy, PR 14646)
  • Handle walrus declaration in match subject correctly (Stas Ilinskiy, PR 14665)
Stubgen Improvements

Stubgen is a tool for automatically generating draft stubs for libraries.

  • Allow aliases below the top level (Chad Dombrova, PR 14388)
  • Fix crash with PEP 604 union in type variable bound (Shantanu, PR 14557)
  • Preserve PEP 604 unions in generated .pyi files (hamdanal, PR 14601)
Stubtest Improvements

Stubtest is a tool for testing that stubs conform to the implementations.

  • Update message format so that it’s easier to go to error location (Avasam, PR 14437)
  • Handle name-mangling edge cases better (Alex Waygood, PR 14596)
Changes to Error Reporting and Messages
  • Add new TypedDict error code typeddict-unknown-key (JoaquimEsteves, PR 14225)
  • Give arguments a more reasonable location in error messages (Max Murin, PR 14562)
  • In error messages, quote just the module's name (Ilya Konstantinov, PR 14567)
  • Improve misleading message about Enum() (Rodrigo Silva, PR 14590)
  • Suggest importing from typing_extensions if definition is not in typing (Shantanu, PR 14591)
  • Consistently use type-abstract error code (Ivan Levkivskyi, PR 14619)
  • Consistently use literal-required error code for TypedDicts (Ivan Levkivskyi, PR 14621)
  • Adjust inconsistent dataclasses plugin error messages (Wesley Collin Wright, PR 14637)
  • Consolidate literal bool argument error messages (Wesley Collin Wright, PR 14693)
Other Fixes and Improvements
  • Check that type guards accept a positional argument (EXPLOSION, PR 14238)
  • Fix bug with in operator used with a union of Container and Iterable (Max Murin, PR 14384)
  • Support protocol inference for type[T] via metaclass (Ivan Levkivskyi, PR 14554)
  • Allow overlapping comparisons between bytes-like types (Shantanu, PR 14658)
  • Fix mypy daemon documentation link in README (Ivan Levkivskyi, PR 14644)
Typeshed Updates

Typeshed is now modular and distributed as separate PyPI packages for everything except the standard library stubs. Please see git log for full list of typeshed changes.

Acknowledgements

Thanks to all mypy contributors who contributed to this release:

  • Alex Waygood
  • Avasam
  • Chad Dombrova
  • dosisod
  • EXPLOSION
  • hamdanal
  • Ilya Konstantinov
  • Ivan Levkivskyi
  • Jared Hance
  • JoaquimEsteves
  • Jukka Lehtosalo
  • Marc Mueller
  • Max Murin
  • Michael Lee
  • Michael R. Crusoe
  • Richard Si
  • Rodrigo Silva
  • Shantanu
  • Stas Ilinskiy
  • Wesley Collin Wright
  • Yilei "Dolee" Yang
  • Yurii Karabas

We’d also like to thank our employer, Dropbox, for funding the mypy core team.

Posted by Max Murin

v1.0.1

Compare Source

v1.0.0

Compare Source

v0.991

Compare Source

v0.990

Compare Source

v0.982

Compare Source

v0.981

Compare Source

v0.971

Compare Source

v0.961

Compare Source

v0.960

Compare Source

v0.950

Compare Source

v0.942

Compare Source

v0.941

Compare Source

v0.940

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov
Copy link

codecov bot commented Mar 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.95%. Comparing base (1d912f9) to head (30f48d2).

Current head 30f48d2 differs from pull request most recent head d89c6a0

Please upload reports for the commit d89c6a0 to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #158   +/-   ##
=======================================
  Coverage   97.95%   97.95%           
=======================================
  Files           5        5           
  Lines         147      147           
=======================================
  Hits          144      144           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/mypy-1.x branch 4 times, most recently from f90757e to 82c37ea Compare March 25, 2023 03:14
@renovate renovate bot force-pushed the renovate/mypy-1.x branch 2 times, most recently from e2503fb to 30f48d2 Compare April 12, 2023 06:13
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from 30f48d2 to b701bd7 Compare May 10, 2023 16:47
@renovate
Copy link
Contributor Author

renovate bot commented May 10, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: poetry.lock
Updating dependencies
Resolving dependencies...

Creating virtualenv pixelmatch--C27oMZR-py3.12 in /home/ubuntu/.cache/pypoetry/virtualenvs

The current project's Python requirement (>=3.7,<4.0) is not compatible with some of the required packages Python requirement:
  - mypy requires Python >=3.8, so it will not be satisfied for Python >=3.7,<3.8

Because no versions of mypy match >1.10.0,<2.0.0
 and mypy (1.10.0) requires Python >=3.8, mypy is forbidden.
So, because pixelmatch depends on mypy (^1.10.0), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
    
    For mypy, a possible solution would be to set the `python` property to ">=3.8,<4.0"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

@renovate renovate bot force-pushed the renovate/mypy-1.x branch 2 times, most recently from 0dcdb96 to f956f4f Compare June 26, 2023 02:29
@renovate renovate bot force-pushed the renovate/mypy-1.x branch 2 times, most recently from a1f0063 to 659b8db Compare August 16, 2023 17:16
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from 659b8db to b51264d Compare October 10, 2023 18:54
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from b51264d to b52b607 Compare October 18, 2023 09:00
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from b52b607 to e0b8da3 Compare November 10, 2023 16:13
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from e0b8da3 to 5a2cf2b Compare November 23, 2023 18:32
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from 5a2cf2b to a6ef3d8 Compare December 21, 2023 19:39
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from a6ef3d8 to 4f974aa Compare March 8, 2024 17:06
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from 4f974aa to cdf910f Compare April 24, 2024 14:09
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from cdf910f to d89c6a0 Compare June 25, 2024 02:32
Copy link
Contributor Author

renovate bot commented Jun 25, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: poetry.lock
Updating dependencies
Resolving dependencies...

Creating virtualenv pixelmatch--C27oMZR-py3.13 in /home/ubuntu/.cache/pypoetry/virtualenvs

The current project's Python requirement (>=3.7,<4.0) is not compatible with some of the required packages Python requirement:
  - mypy requires Python >=3.8, so it will not be satisfied for Python >=3.7,<3.8

Because no versions of mypy match >1.14.1,<2.0.0
 and mypy (1.14.1) requires Python >=3.8, mypy is forbidden.
So, because pixelmatch depends on mypy (^1.14.1), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
    
    For mypy, a possible solution would be to set the `python` property to ">=3.8,<4.0"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

@renovate renovate bot force-pushed the renovate/mypy-1.x branch from d89c6a0 to d78b2a2 Compare July 19, 2024 18:30
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from d78b2a2 to fcf76f7 Compare July 31, 2024 00:12
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from fcf76f7 to 96d8f48 Compare August 25, 2024 01:20
@renovate renovate bot force-pushed the renovate/mypy-1.x branch 2 times, most recently from 7317dc3 to f85775d Compare October 20, 2024 01:59
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from f85775d to 7e9aaa0 Compare October 23, 2024 00:20
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from 7e9aaa0 to 825173e Compare December 20, 2024 17:41
@renovate renovate bot force-pushed the renovate/mypy-1.x branch from 825173e to 8f1cf18 Compare December 30, 2024 18:52
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.

0 participants