Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/python/mypy
Optional static typing for Python
https://github.com/python/mypy
This was discussed in the contributor meetup today. This is a simple
solution that requires ver...
<!--
Checklist:
- Read the [Contributing
Guidelines](https://github.com/python/mypy/blob/mast...
Originally this was added in 040f3ab revision at 562th line.
5506cba158d76cd11697d1178d73a552aa617b7c authored about 1 year ago by Ihor <[email protected]>
In some cases, mypy daemon could generate false positives about imports
targeting packages with...
Mypyc used to always put nested functions into the environment object,
which results in cyclic ...
Note: `reveal_type(1) # type: ignore` is problematic, because it
silences the output. So, I've ...
I pre-populated it with blog post entries since mypy 1.0. There might be
some markdown or backs...
This is the last significant thing I am aware of that is needed for PEP
646 support. After this...
I couldn't reproduce the crash with a small example, but this seems to
fix this crash in a larg...
Release post: https://astral.sh/blog/ruff-v0.1.0
f5a3e233c99077317c4cf6fee7745686d67fd21b authored about 1 year ago by Nikita Sobolev <[email protected]>Fixes https://github.com/python/mypy/issues/16199
It was surprisingly hard to fix, because al...
85f40b5c8479cbca1d30f912fb95aa243b09c334 authored about 1 year ago by Ivan Levkivskyi <[email protected]>
This does 2 things:
1. It changes the IPC code to work with multiple messages.
2. It changes t...
This MR is a major overhaul to `stubgen`. It has been tested extensively
in the process of crea...
This adds some missing pieces to runtime type application handling for
both `TypeVarTuple` and ...
Fixes #16077
940fceb59a55513913c3c9c1eaf89a7f5ee774d6 authored about 1 year ago by Shantanu <[email protected]>feb0fa75ca7f3abb1217d94f6ffb55994b9a31c8 authored about 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fixes https://github.com/python/mypy/issues/16257
Parenthesis strike back. I hope this is the...
2e52e98fd2873775a58616c097e93c96f58fc991 authored about 1 year ago by Ivan Levkivskyi <[email protected]>fixes #16255
fbc48afccdf47de43fba73f2bc0eaf43a3f7b310 authored about 1 year ago by Alex Waygood <[email protected]>
Fixes https://github.com/python/mypy/issues/16245
Fixes https://github.com/python/mypy/issues/1...
After dmypy starts serving, stdout and stderr gets captured. If we have
an error, we assume we ...
Thanks AlexWaygood for sending me on this adventure. This took me a
while for me to debug!
W...
8b6d21373f44959d8aa194723e871e5468ad5c71 authored about 1 year ago by Shantanu <[email protected]>Co-authored-by: KotlinIsland <[email protected]>
e87b62fcda423a9cd6db9076f66459fe47491568 authored about 1 year ago by KotlinIsland <[email protected]>Fixes #15579
ff7ac75387d3b5c7d0eaa4573bf2a0723bf3a3fc authored over 1 year ago by Shantanu <[email protected]>
It does not change the license itself, only its identifier in
`setup.py`, so external tools can...
This is includes also related things such as tuple concatenation,
special-cased tuple "re-packi...
All of these stubs packages have been removed from typeshed, due to the
runtime package having ...
Closes #16218
a1df3353a7bc0d7ff7b3459e95d0f9684b325e9b authored over 1 year ago by Alex Waygood <[email protected]>
Resolves #10570
Resolves #6473
When running the mypy unittests, most of the time any output files are
produced into a temporar...
Follow up to #16112
96803e0817c751e82fe88695647e20a8f050dee9 authored over 1 year ago by Shantanu <[email protected]>bcd4ff231554102a6698615882074e440ebfc3c9 authored over 1 year ago by Alex Waygood <[email protected]>
Fixes #8776
99ba048f4887eb0fbd55cde3f4243f6c177cbf7e authored over 1 year ago by Thomas Grainger <[email protected]>
Fixes most of #12320. I didn't add tests for every code path because
it's niche. I also didn't ...
Source commit:
https://github.com/python/typeshed/commit/559d31c4a33045310a30843dd7fac88a62cc...
7a62481c4ed4007a0323118d3e1b8727b2136434 authored over 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Fixes #16202
acccdd8a25b019e6b08180e2f95417a29651435e authored over 1 year ago by Jelle Zijlstra <[email protected]>Supersedes https://github.com/python/mypy/pull/15254
Note the error message for one of the te...
181cbe88f1396f2f52770f59b6bbb13c6521980a authored over 1 year ago by Ivan Levkivskyi <[email protected]>
This fixes a regression caused by
https://github.com/python/mypy/pull/16122
This improves support for two features that were supported but only
partially: variadic calls, ...
This should help with re-enabling the use of `ParamSpec` in
`functools.wraps` (as it looks like...
Fixes https://github.com/python/mypy/issues/13220
This looks a bit ad-hoc, but it is probably...
5f6961b38acd7381ff3f8071f1f31db192cba368 authored over 1 year ago by Ivan Levkivskyi <[email protected]>
Fixes https://github.com/python/mypy/issues/230
Fixes https://github.com/python/mypy/issues/646...
* Fix handling of nested imports.
Instead of assuming that a name is imported from a top level ...
```
heirarchy -> hierarchy
```
This slot was not used anywhere:
```
ยป ag is_classmethod_class .
...
The point of the `import a as a` and `from a import b as b` syntax for
explicit reexport is tha...
I think the current error message is enough:
https://github.com/python/mypy/issues/16141
CC ...
c9929e2c906d377ca7026c4be10f88a1bd7ecff1 authored over 1 year ago by Nikita Sobolev <[email protected]>Fixes #8283
Co-authored-by: ilevkivskyi
249f3f8285d9d2a0f77273ace805dac0eef684c6 authored over 1 year ago by Shantanu <[email protected]>Fixes: #8359
CC @sobolevn
`get_dynamic_class_hook()` will now additionally be called for ...
ba978f461e1f88327f9caa2e83774caaaeee1a6a authored over 1 year ago by Petter Friberg <[email protected]>Resolves #13965. Follow up to #13967. Unblocks #14086
1dcff0d2235ba6570f290a126f1bdd762f2d4991 authored over 1 year ago by Shantanu <[email protected]>Fixes #16132.
9b9152484c6b1ba3934373ca0c7600f71392fb06 authored over 1 year ago by Hamir Mahal <[email protected]>Fixes #15741
bf7eab682a2bc63ec90e868610231a105a9b415f authored over 1 year ago by Hamir Mahal <[email protected]>Fixes #15877
Regression was introduced by #15070. Previously Errors objects created
in mypyc...
We [already
synthesize](https://github.com/python/mypy/issues/15843#issuecomment-1685159995)
`...
Followup to #16121
0222bf492e035ab1062a6d6fc38abc249a8ae211 authored over 1 year ago by Alex Waygood <[email protected]>7d987a1056e4c6ee6f75aa4841f7e0c73ca9b496 authored over 1 year ago by AlexWaygood <[email protected]>
Since the plugin provides superior type checking: https://github.com/python/mypy/pull/13987#issue...
2816b97d5c61355d089b291b861df4c64f4aa96a authored over 1 year ago by AlexWaygood <[email protected]>This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
378a866e90f534a0f0e9bbbca1324317ba784bbb authored over 1 year ago by Shantanu <[email protected]>9859fe7ba3ae046ed3aa822f869ec4866978eac8 authored over 1 year ago by Shantanu <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/0ea043253e70d0304478a6d0b58bcda4cc583d08
ec665cc8b4f59e81ec28ea946bc673cb20028751 authored over 1 year ago by AlexWaygood <[email protected]>
Fixes https://github.com/python/mypy/issues/16107
Fixes https://github.com/python/mypy/issues/1...
Fixes #12441
Fixes #9986
Fixes #15966
Fixes https://github.com/python/mypy/issues/15557
FWIW I simply copy the logic for handling m...
402c8ffa821d35a68dfe010a59f1dd9ea3dbb02a authored over 1 year ago by Ivan Levkivskyi <[email protected]>
It's annoying that one line change causes everything else to show up as
a diff. Just use diffli...
Follow up to #16073 and #16076
Fix needed for
https://github.com/python/mypy/pull/16053/files#...
Fixes https://github.com/python/mypy/issues/15734
Fixes https://github.com/python/mypy/issues/1...
The second part of support for user defined variadic types comes as a
single PR, it was hard to...
Previously returning a tuple from a function resulted in redundant
increfs and decrefs
for eac...
Fixes https://github.com/python/mypy/issues/16082
Currently we only allow `Unpack` of a Typed...
9e520c38777267495642845f070be4383f50342d authored over 1 year ago by Ivan Levkivskyi <[email protected]>There are several changes:
1. `add_overloaded_method_to_class` itself. It is very useful for ...
9a35360739ced871feb6331a14a7bbacce00c7dc authored over 1 year ago by Nikita Sobolev <[email protected]>
A new error code was introduced in
https://github.com/python/mypy/pull/16061
As per https://...
ed18fea5b17ef3a969b37b4906dd7c237ddb1825 authored over 1 year ago by Shantanu <[email protected]>Fixes #16057.
f9dc5610423d368bcf804b6a88a2d8502e62df1c authored over 1 year ago by Ilya Priven <[email protected]>49419835045b09c98b545171abb10384b6ecf6a9 authored over 1 year ago by Matt Bogosian <[email protected]>
This PR closes the first part of support for `TypeVarTuple`: the
"static" analysis of types (of...
1. #16061 added a new error code, but didn't add any docs for the new
error code
2. Because no...
fixes #16060
Co-authored-by: Alex Waygood <[email protected]>
175c5a59f18df9d56b3c2fb0e2a9669dd196c311 authored over 1 year ago by Randolf Scholz <[email protected]>Add `new_type_inference` to the list of options affecting the cache.
ed9b8990025a81a12e32bec59f2f3bfab3d7c71b authored over 1 year ago by Marc Mueller <[email protected]>Refs https://github.com/python/mypy/pull/16048
c0906408c10d24d748711fa24be5befb2c794d4c authored over 1 year ago by Nikita Sobolev <[email protected]>
Users don't know about them:
https://github.com/typeddjango/pytest-mypy-plugins/issues/126
Sin...
Looks like recent CI failures are related.
Release docs: https://github.com/actions/checkout/re...
CC @ikonst
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users...
c712079e1cbd74e2ea37da02d66152810fb69903 authored over 1 year ago by Nikita Sobolev <[email protected]>
Some builtin aliases are available for all python versions that we
support. So, there's no need...
Closes https://github.com/python/mypy/issues/16027
8738886861682e0d168ea321c2cc6ee5b566cb8b authored over 1 year ago by Nikita Sobolev <[email protected]>I modified
```diff
diff --git mypy/binder.py mypy/binder.py
index 8a68f24f6..194883f86 100...
92e054b7dad3641fe74326ef60e773b974ca614f authored over 1 year ago by Nikita Sobolev <[email protected]>
87365eb3b2ef5f89c19de2708a826f3c80e914a6 authored over 1 year ago by Nikita Sobolev <[email protected]>
For example, this [review
comment](https://github.com/python/mypy/pull/15481#discussion_r131375...
Fixes #15653.
I did not use erictraut's "quantum entanglement" metaphor, though I
find it to...
Factor `run_pytest` out of mypy/test/meta/test_*.py.
6a6d2e8a2d919af7557063de8f1faa580969b011 authored over 1 year ago by Ilya Priven <[email protected]>
Document behavior discussed in
https://github.com/python/typing/discussions/1456.
---------
...
Fixes #15979. Fix is similar to that in `iterate_python_lines`.
5adf934804c512c37a9506aeae426622abf92cb5 authored over 1 year ago by Shantanu <[email protected]>Fixes #3226.
Aims to provide better assistance to users who may be confused when
their void ...
Fixes #14477
6884aa2b27f7ec25ebeffab9e39b35807642a9d2 authored over 1 year ago by DS/Charlie <[email protected]>Fixes #16003. Follow up to #14740
17e9e228f2efaeab2ca063cca44411feaa370dd5 authored over 1 year ago by Shantanu <[email protected]>Mypy does not yet support PEP 695
Fixes #16011, linking #15238
0c29507e6ef870eb96da222a734dc8ef8e5fbe24 authored over 1 year ago by Shantanu <[email protected]>Fixes #16002
803f61097b0eba6505c976d72ce2176b8c64d987 authored over 1 year ago by Shantanu <[email protected]>This e.g. makes sure both code paths receive my fix in #15688
d440490270b643b2be333b5b27b154813f016ab6 authored over 1 year ago by Shantanu <[email protected]>Source commit:
https://github.com/python/typeshed/commit/f28cb8b8562ccc382d018129ba4886f241c6...
2a6d9cbc45eba360934ddee7b43c607b3edb3095 authored over 1 year ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Fixes #15950
df4717ee2cbbeb9e47fbd0e60edcaa6f81bbd7bb authored over 1 year ago by Shantanu <[email protected]>
We've cut the release branch for 1.6, so the dev version should now be
1.7.
Co-authored-by: ...
9a0aca14724eeef580eefcd3b340678313a1930a authored over 1 year ago by Max Murin <[email protected]>