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
Fixes #15639.
The new-style API `attrs.define` [enables slots by
default](https://www.attrs....
87fa107661d8008f905caaf2eac8935cfab81efa authored over 1 year ago by Ilya Priven <[email protected]>
Fixes a
[gotcha](https://github.com/python/mypy/pull/15283#issuecomment-1631820071)
with `--up...
Follow up to #15430 — would've made
https://github.com/python/mypy/pull/15566#issuecomment-1616...
The 7.4.0 release of pytest broke mypy because we were using some
undocumented, private API tha...
These are treated the same way as `TypeVar` except imported from
`typing_extensions` instead of...
Fixes: #15020
f72e4e548b3fd03b5a1b7e2ba175f35bc2e9148c authored over 1 year ago by Marc Mueller <[email protected]>ebfea94c9f1dc081f8f3f0de9e78a5c83ff8af40 authored over 1 year ago by Ali Hamdan <[email protected]>
15929457fabe5bd5e768d495ea11689d4d8be634 authored over 1 year ago by Marc Mueller <[email protected]>
6cd8c00983a294b4b142ee0f01e91912363d3450 authored over 1 year ago by Marc Mueller <[email protected]>
Followup to https://github.com/python/mypy/pull/15586
This will be the last one 🚀
d106c847904ac84d92dc828de5057d80e8774c44 authored over 1 year ago by Marc Mueller <[email protected]>Followup to https://github.com/python/mypy/pull/15586
ef0b763fb25790892e208cd2691d272494ea7720 authored over 1 year ago by Marc Mueller <[email protected]>91e4ce496fd6032c8670d1d3ce350930ab4f3aa4 authored over 1 year ago by Marc Mueller <[email protected]>
d65e1e7523a30323a617ecb55cde8a9ed89e653a authored over 1 year ago by Marc Mueller <[email protected]>
cf863877aac1e1b54a929aca08125bfdcd4bf8f9 authored over 1 year ago by Stavros Ntentos <[email protected]>
Fix the testProtocol test case in mypyc/test-data/run-classes.test.
There was a comment indic...
79114d19df14b28effc8bbd7cb376521d83b0046 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
This is mostly similar to `i16` that I added recently in #15464, but
there are some
difference...
e0b159e0bb6bd414d2999bfcecbb5432541ec3fd authored over 1 year ago by Marc Mueller <[email protected]>
Followup to https://github.com/python/mypy/pull/15586
Co-authored-by: Shantanu <12621235+haun...
fa8853bda7035ef517984b4afbaa6d953318fa9d authored over 1 year ago by Marc Mueller <[email protected]>fae7d90c7f18d44f7ebe7c25d63325c9811e9fe0 authored over 1 year ago by Marc Mueller <[email protected]>
d4865b25dc6653f5d0a94a17d1fc8c445192bb32 authored over 1 year ago by Marc Mueller <[email protected]>
8f66718d996c11fc1f86c21331b31dcc57763cf0 authored over 1 year ago by Marc Mueller <[email protected]>
c13f1d416e907f58bc77d086b84819f500f1bde9 authored over 1 year ago by Erik Kemperman <[email protected]>
7d1a89998e90acd36a5673399f5e75bc029526f9 authored over 1 year ago by Marc Mueller <[email protected]>
Got commits from https://github.com/python/mypy/commits/master after
merging https://github.com...
a9f8df7cda032f637946bb2ea7a60f790f81350f authored over 1 year ago by Alex Waygood <[email protected]>
9f4c0d8af2c0542f749563535de2c28da736a9a7 authored over 1 year ago by Shantanu <[email protected]>
This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
56f43433673fe97de14b903cbeb9bc940b67f09d authored over 1 year ago by Shantanu <[email protected]>Since the plugin provides superior type checking: https://github.com/python/mypy/pull/13987#issue...
71c4269df306e53cb0eec7474dcde26e5a72d45e authored over 1 year ago by AlexWaygood <[email protected]>186fbb18e1cb30c8e51b79fe2d193c15a49d4588 authored over 1 year ago by AlexWaygood <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/fc7d4722eaa54803926cee5730e1f784979c0531
If misc/sync-typeshed.py fails to apply a cherry pick, it just fails.
Let's try to give the use...
85ba5745afcc646c1728dbb690bfb196537abe04 authored over 1 year ago by Erik Kemperman <[email protected]>
913477ee68094b137d3a70f4724a460db1400a7e authored over 1 year ago by Marc Mueller <[email protected]>
This PR fixes a word within a code block of the `Getting Started/Types
from libraries` document...
781dc8f82adacce730293479517fd0fb5944c255 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
e86f097ee9dac7488ccd0d444182e33733710c42 authored over 1 year ago by Nikita Sobolev <[email protected]>
dcdcc60b3082b99b0088e0f5c443f90a60091d77 authored over 1 year ago by Nikita Sobolev <[email protected]>
49d95cf6b40fb3ebee2183e95206c91c81e7a107 authored over 1 year ago by Alex Waygood <[email protected]>
There were few cases when someone forgot to call `strict_optional_set()`
in dataclasses plugin,...
2e9c9b4ec9eece1209c6df1e559ed371cdfbd1b3 authored over 1 year ago by Nikita Sobolev <[email protected]>
This fixes the testPickling test case in
mypyc/test-data/run-classes.test on Python 3.12.
Ha...
4df2215981593d14faf25e3dec658fffeed9c41f authored over 1 year ago by Jukka Lehtosalo <[email protected]>
Warnings before:
https://github.com/python/mypy/issues/15330#issuecomment-1615010604
Warnings ...
These mostly date back to https://github.com/python/mypy/pull/4369 There
are also some skipped ...
96eadfd29ab30517e8a2d44361bd6292d29284f4 authored over 1 year ago by Shantanu <[email protected]>
2edaf35ec1f91c139dfe1930b1b0d1e1cac59599 authored over 1 year ago by Shantanu <[email protected]>
Fix stdout flushing to avoid empty lines getting out of alignment with
the rest of the output.
...
I forgot to add this when I added mypyc support for the i16 native
integer type.
The mypy_ex...
3730899fce2917e312511dc68d813e5dc42d5685 authored over 1 year ago by Jukka Lehtosalo <[email protected]>Towards mypyc/mypyc#978.
---------
Co-authored-by: Jukka Lehtosalo <[email protected]...
92602c523975495af544bd493d0bd59d15334440 authored over 1 year ago by Richard Si <[email protected]>
The changes made in #15543 mean that mypy's tests will no longer pass if
you've got `typing_ext...
Fixes #15529
The fix is straightforward, hopefully there will be no fallout. (Note
that #140...
95dde9d8dc9007b28881eee10231bdd8ae0c9d43 authored over 1 year ago by Shantanu <[email protected]>
There's no real need for us to have separate `setup.cfg` and
`pytest.ini` files these days
66d03daf35bde2dcc8fdc746aa31b2f59dcba515 authored over 1 year ago by Shantanu <[email protected]>
05c81d69b724afd20f501b6427aa3f740083a916 authored over 1 year ago by Jelle Zijlstra <[email protected]>
9a4a5aa77a303c2e56e9dc9bd9327974bf777894 authored over 1 year ago by Richard Si <[email protected]>
Fixes #7186
We can probably add some kind of redirect from mypy-lang.org, but I
think RTD li...
I am adding these mostly to get rid of the allowlist in
`html_builder.py`, please feel free to ...
4012c50382641aa4a15fcb7155f281469bc7a5fa authored over 1 year ago by Alex Waygood <[email protected]>
Fix sdist and python wheel build.
https://github.com/mgedmin/check-manifest
https://github.c...
4d94271b37dd2912e3030c5c5d71fd22099e0eb2 authored over 1 year ago by Marc Mueller <[email protected]>
Fixes #9408
Fixes #4122
Fixes #6462
Supersedes #13353
This PR enables two similar technica...
8290bb81db80b139185a3543bd459f904841fe44 authored over 1 year ago by Ivan Levkivskyi <[email protected]>7ce3568d823c52e734983333271d315b637a61e6 authored over 1 year ago by Kyle Benesch <[email protected]>
Now we use a similar approach to
https://github.com/python/mypy/pull/14849
First, we generate ...
9ad3f381ad28be818758e0b24443d36e95b5f943 authored over 1 year ago by Richard Si <[email protected]>
Now mypy can constant fold these additional operations:
- Float arithmetic
- Mixed int and f...
Two recent mypyc PRs didn't work together (#15470 and #15464). Fix them.
2bb70781e9c1d5a27b20b8e68980c19ec1ee25fb authored over 1 year ago by Jukka Lehtosalo <[email protected]>The representation of `int` objects was changed in Python 3.12.
Define some helper macros to ...
9bd85638361de256d732f88396206711c2e10f1d authored over 1 year ago by Jukka Lehtosalo <[email protected]>
It is not needed, because it is always serialized as `bool` and is
always present.
It was ad...
1fab96bf829c2ff6f1a10e3a47718f77a4a4a5ad authored over 1 year ago by Nikita Sobolev <[email protected]>ef87305e2aef19c57a3cd485106de825eb45a0c6 authored over 1 year ago by Shantanu <[email protected]>
I think we relied on undocumented behavior on older Python versions. Now
it works consistently ...
Got this working with a little trial and error.
Work on mypyc/mypyc#995.
c2dc3ff4ee2283f42968aaf2a92bb5dabb05ec01 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
The `i16` type behaves the same as `i64` and `i32`, but is obviously
smaller. The PR is big, bu...
Now it uses the same pattern for `.fail` as similar places:
-
https://github.com/python/mypy/b...
Fixes #15489
2d8ad8ef240df262be80d9359e9f5892ea1f9ad3 authored over 1 year ago by Shantanu <[email protected]>
pytest 7.4.0 was just released, and our CI on `master` is very red as a
result. Looks like we'r...
We don't use either of these in our own code at all. Neither of them
should be needed in 2023.
...
c918d40b1500d141d14764ef967ca56ce633efb2 authored over 1 year ago by Nikita Sobolev <[email protected]>
2e304ca36df9975299769b3b40ec9d73ad4f68b4 authored over 1 year ago by Marc Mueller <[email protected]>
All recent versions (declared in `setup.py`) have `TypedDict` there. So,
no need to use `mypy-e...
In #15164 we've made it so that `# type: ignore`s in lines skipped in
semantic analysis would n...
7d031beb017450ac990c97e288d064290e3be55f authored over 1 year ago by Marc Mueller <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
88845188c8d1a16e528bb8881a02d374a33af370 authored over 1 year ago by Marc Mueller <[email protected]>304997bfb85200fb521ac727ee0ce3e6085e5278 authored over 1 year ago by Logan Hunt <[email protected]>
Since tests are parallelized, the temporary test name must be unique.
e3210d07d945bd7b120dd0d6f20036ed664c4129 authored over 1 year ago by Ilya Priven <[email protected]>1e5caa0dc349750c3eb6c5f448c7aab524e3ec38 authored over 1 year ago by Shantanu <[email protected]>
7d5213d0c3490ab03ed5240f9a02dd95dd002793 authored over 1 year ago by Shantanu <[email protected]>
15f210b104c253e866b50607126c7022258bd715 authored over 1 year ago by Marc Mueller <[email protected]>
d1fe7cf849dbdf2b41109db1ce5fc6293ce6ec0a authored over 1 year ago by Shantanu <[email protected]>
6907343e0191162aa03cc21d23489606e0997b4a authored over 1 year ago by Jukka Lehtosalo <[email protected]>
c0e6d2818bcab9a7313cebb54463d752004de844 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
It's currently unused but I have other PRs that will need this.
We can later make this more g...
719e7e77a52d30146de3a95ee2b6baf69a11eb17 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
The tests added with this piece of code now pass even without it. It
looks like the crash was p...
Fixes #1317
Fixes #5738
Fixes #12919
(also fixes a `FIX` comment that is more than 10 years ...
91b67405a7cd9da551411ccb4e28493647208c11 authored over 1 year ago by Shantanu <[email protected]>
Validate `dataclassses.replace` actual arguments to match the fields:
- Unlike `__init__`, th...
6f2bfff521e708f015af1eec5118db4600b829be authored over 1 year ago by Ilya Priven <[email protected]>Fixes #14056
#14056 was originally reported as a mypyc issue (because that's how it
presente...
Fixes #15446
setuptools has broken how editable installs work. It seems like most
other buil...
This simplifies things a bit. All the C compilers we care about should
support this.
This wi...
65a715a650cc058daad93e123ce972d99088f19f authored over 1 year ago by Jukka Lehtosalo <[email protected]>cfec71798175fcbf030d6d114750d6fac454b3c9 authored over 1 year ago by Adel Atallah <[email protected]>
Fixes #5343
Fixes #12249
This can potentially slow down runs in situations where multiple
u...