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

attrs: define defaults to slots=True (#15642)

Fixes #15639.

The new-style API `attrs.define` [enables slots by
default](https://www.attrs....

4d394c1cd116b0b8efbc8c73b6f49245cd46917f authored over 1 year ago by Ilya Priven <[email protected]>
.git-blame-ignore-revs: add #12711 (#15643)

87fa107661d8008f905caaf2eac8935cfab81efa authored over 1 year ago by Ilya Priven <[email protected]>
tests: --update-data incompatible with xdist (#15641)

Fixes a
[gotcha](https://github.com/python/mypy/pull/15283#issuecomment-1631820071)
with `--up...

38a710418dd839e4af52bd74c7afa8eb954a315b authored over 1 year ago by Ilya Priven <[email protected]>
tests: enforce meaningful version checks (#15635)

Follow up to #15430 — would've made
https://github.com/python/mypy/pull/15566#issuecomment-1616...

569cfc9e6212e0bb841b1a299f0d8615b34cddee authored over 1 year ago by Ilya Priven <[email protected]>
Bump pytest to >=7.4.0 (#15611)

The 7.4.0 release of pytest broke mypy because we were using some
undocumented, private API tha...

0a020fa73cf5339a80d81c5b44e17116a5c5307e authored over 1 year ago by Alex Waygood <[email protected]>
stubgen: Support `ParamSpec` and `TypeVarTuple` (#15626)

These are treated the same way as `TypeVar` except imported from
`typing_extensions` instead of...

67cc05926b037243b71e857a394318c3a09d1daf authored over 1 year ago by Ali Hamdan <[email protected]>
Support optional for custom dataclass descriptors (#15628)

Fixes: #15020

f72e4e548b3fd03b5a1b7e2ba175f35bc2e9148c authored over 1 year ago by Marc Mueller <[email protected]>
stubdoc: Fix crash on non-str docstring (#15623)

ebfea94c9f1dc081f8f3f0de9e78a5c83ff8af40 authored over 1 year ago by Ali Hamdan <[email protected]>
Cleanup after enabling strict default for test files (#15627)

15929457fabe5bd5e768d495ea11689d4d8be634 authored over 1 year ago by Marc Mueller <[email protected]>
Enable strict optional for more test files (3) (#15597)

6cd8c00983a294b4b142ee0f01e91912363d3450 authored over 1 year ago by Marc Mueller <[email protected]>
Enable strict optional for more test files (9) (#15607)

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]>
Enable strict optional for more test files (8) (#15606)

Followup to https://github.com/python/mypy/pull/15586

ef0b763fb25790892e208cd2691d272494ea7720 authored over 1 year ago by Marc Mueller <[email protected]>
Enable strict optional for more test files (7) (#15604)

91e4ce496fd6032c8670d1d3ce350930ab4f3aa4 authored over 1 year ago by Marc Mueller <[email protected]>
Add upper bound for lxml (#15608)

d65e1e7523a30323a617ecb55cde8a9ed89e653a authored over 1 year ago by Marc Mueller <[email protected]>
"mypy Gitter" is dead; it is called "python/typing" (#15610)

cf863877aac1e1b54a929aca08125bfdcd4bf8f9 authored over 1 year ago by Stavros Ntentos <[email protected]>
[mypyc] Fix multiple inheritance with a protocol on Python 3.12 (#15572)

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]>
[mypyc] Support the u8 native integer type (#15564)

This is mostly similar to `i16` that I added recently in #15464, but
there are some
difference...

8c70e8043db2c3b537bdfaa42632451950f51b68 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
Enable strict optional for more test files (6) (#15603)

e0b159e0bb6bd414d2999bfcecbb5432541ec3fd authored over 1 year ago by Marc Mueller <[email protected]>
Enable strict optional for more test files (5) (#15602)

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]>
Enable strict optional for more test files (4) (#15601)

fae7d90c7f18d44f7ebe7c25d63325c9811e9fe0 authored over 1 year ago by Marc Mueller <[email protected]>
Enable strict optional for more test files (2) (#15596)

d4865b25dc6653f5d0a94a17d1fc8c445192bb32 authored over 1 year ago by Marc Mueller <[email protected]>
Enable strict optional for more test files (1) (#15595)

8f66718d996c11fc1f86c21331b31dcc57763cf0 authored over 1 year ago by Marc Mueller <[email protected]>
Better consistency with explicit staticmethods (#15353)

c13f1d416e907f58bc77d086b84819f500f1bde9 authored over 1 year ago by Erik Kemperman <[email protected]>
Add foundation to enable `--strict-optional` in all test files (#15586)

7d1a89998e90acd36a5673399f5e75bc029526f9 authored over 1 year ago by Marc Mueller <[email protected]>
Update commits for sync-typeshed cherry picks (#15592)

Got commits from https://github.com/python/mypy/commits/master after
merging https://github.com...

1e14d13a4453a0a68909650faba86f683a1b90a5 authored over 1 year ago by Valentin Stanciu <[email protected]>
Remove `six` as a test dependency (#15589)

a9f8df7cda032f637946bb2ea7a60f790f81350f authored over 1 year ago by Alex Waygood <[email protected]>
Remove use of LiteralString in builtins (#13743)

9f4c0d8af2c0542f749563535de2c28da736a9a7 authored over 1 year ago by Shantanu <[email protected]>
Revert sum literal integer change (#13961)

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]>
Revert typeshed ctypes change

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]>
Revert use of `ParamSpec` for `functools.wraps`

186fbb18e1cb30c8e51b79fe2d193c15a49d4588 authored over 1 year ago by AlexWaygood <[email protected]>
Sync typeshed

Source commit:
https://github.com/python/typeshed/commit/fc7d4722eaa54803926cee5730e1f784979c0531

c44fe1a6bf09413d0dd74a354e479e8b041c4a04 authored over 1 year ago by AlexWaygood <[email protected]>
When sync-typeshed fails to apply CP allow manual user merges (#15591)

If misc/sync-typeshed.py fails to apply a cherry pick, it just fails.
Let's try to give the use...

59ba4293679dbed20a6d67fc3eff88d8f98eda43 authored over 1 year ago by Valentin Stanciu <[email protected]>
Handle type same as typing.Type in classmethod 1st arg (#15297)

85ba5745afcc646c1728dbb690bfb196537abe04 authored over 1 year ago by Erik Kemperman <[email protected]>
Target py38 for ruff (#15585)

913477ee68094b137d3a70f4724a460db1400a7e authored over 1 year ago by Marc Mueller <[email protected]>
Fix variable name in comment in `getting_started.rst` (#15587)

This PR fixes a word within a code block of the `Getting Started/Types
from libraries` document...

cb0a44630a0608994116e3de3be07b6d3b14381a authored over 1 year ago by Federico Padua <[email protected]>
[mypyc] Fix self-compilation on Python 3.12 (#15582)

781dc8f82adacce730293479517fd0fb5944c255 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
Target py3.8+ for black (#15583)

e86f097ee9dac7488ccd0d444182e33733710c42 authored over 1 year ago by Nikita Sobolev <[email protected]>
Run `pyupgrade --py38-plus` on the source code (#15575)

dcdcc60b3082b99b0088e0f5c443f90a60091d77 authored over 1 year ago by Nikita Sobolev <[email protected]>
Don't add fictional parameters to `NamedTuple._make()` (#15578)

49d95cf6b40fb3ebee2183e95206c91c81e7a107 authored over 1 year ago by Alex Waygood <[email protected]>
Fix strict optional handling in dataclasses (#15571)

There were few cases when someone forgot to call `strict_optional_set()`
in dataclasses plugin,...

5e4d097a1801bcc6f4c160f99cd1ee95f24768aa authored over 1 year ago by Ivan Levkivskyi <[email protected]>
Solve import cycles in expandtype and testtypes.py (#15580)

2e9c9b4ec9eece1209c6df1e559ed371cdfbd1b3 authored over 1 year ago by Nikita Sobolev <[email protected]>
[mypyc] Fix 3.12 issue with pickling of instances with __dict__ (#15574)

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]>
Fix `ast` warnings for Python3.12 (#15558)

Warnings before:
https://github.com/python/mypy/issues/15330#issuecomment-1615010604
Warnings ...

a759c490d21bb9d73e788da4a8dc5c10b077a482 authored over 1 year ago by Nikita Sobolev <[email protected]>
Unskip some tests that appear to pass (#15567)

These mostly date back to https://github.com/python/mypy/pull/4369 There
are also some skipped ...

259c822938c4d3461ba80e8162faf082d487162a authored over 1 year ago by Shantanu <[email protected]>
Fix wheel build trigger (#15568)

96eadfd29ab30517e8a2d44361bd6292d29284f4 authored over 1 year ago by Shantanu <[email protected]>
Drop support for running with Python 3.7 (#15566)

2edaf35ec1f91c139dfe1930b1b0d1e1cac59599 authored over 1 year ago by Shantanu <[email protected]>
[mypyc] Improve failure reporting in default run test driver (#15563)

Fix stdout flushing to avoid empty lines getting out of alignment with
the rest of the output.
...

19c5d5f7848a94c810c8d840a42e29ffe3f8906f authored over 1 year ago by Jukka Lehtosalo <[email protected]>
Define mypy_extensions.i16 in stubs (#15562)

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]>
[mypyc] Document more unsupported features & update supported features (#15524)

Towards mypyc/mypyc#978.

---------

Co-authored-by: Jukka Lehtosalo <[email protected]...

92602c523975495af544bd493d0bd59d15334440 authored over 1 year ago by Richard Si <[email protected]>
Enforce typing_extensions >=4.7.0 on py37 (#15556)

The changes made in #15543 mean that mypy's tests will no longer pass if
you've got `typing_ext...

21beadc0aef5149111ae88504ec1514b943d4f78 authored over 1 year ago by Alex Waygood <[email protected]>
Rebind self-types in subclass methods without Self annotation (#15541)

Fixes #15529

The fix is straightforward, hopefully there will be no fallout. (Note
that #140...

b995e1620789a3ab2fc5dbcf0698a9077b0f5731 authored over 1 year ago by Ivan Levkivskyi <[email protected]>
Switch pre-commit to using mypyc compiled Black wheels (#15544)

95dde9d8dc9007b28881eee10231bdd8ae0c9d43 authored over 1 year ago by Shantanu <[email protected]>
Consolidate config in pyproject.toml (#15548)

There's no real need for us to have separate `setup.cfg` and
`pytest.ini` files these days

06282b55613a5c36c29b8ba1aafb067ac475e047 authored over 1 year ago by Alex Waygood <[email protected]>
Fix find occurrences flag (#15528)

66d03daf35bde2dcc8fdc746aa31b2f59dcba515 authored over 1 year ago by Shantanu <[email protected]>
Fix tests on 3.7 (#15543)

05c81d69b724afd20f501b6427aa3f740083a916 authored over 1 year ago by Jelle Zijlstra <[email protected]>
Process NamedTuple decorators in semantic analyzer (#15513)

9a4a5aa77a303c2e56e9dc9bd9327974bf777894 authored over 1 year ago by Richard Si <[email protected]>
Add option to show links to error code docs (once per code) (#15449)

Fixes #7186

We can probably add some kind of redirect from mypy-lang.org, but I
think RTD li...

fca4cae2537e2aabba2bc5393ef81f2d80cdb5ae authored over 1 year ago by Ivan Levkivskyi <[email protected]>
Add missing docs for error codes (#15539)

I am adding these mostly to get rid of the allowlist in
`html_builder.py`, please feel free to ...

310b914b6046830aafb0468f65464d75362991ab authored over 1 year ago by Ivan Levkivskyi <[email protected]>
Improve ruff config (#15516)

4012c50382641aa4a15fcb7155f281469bc7a5fa authored over 1 year ago by Alex Waygood <[email protected]>
Fix check-manifest action (#15531)

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]>
Support flexible TypedDict creation/update (#15425)

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]>
Exclude the same special attributes from Protocol as CPython (#15490)

7ce3568d823c52e734983333271d315b637a61e6 authored over 1 year ago by Kyle Benesch <[email protected]>
Support better `__post_init__` method signature for `dataclasses` (#15503)

Now we use a similar approach to
https://github.com/python/mypy/pull/14849
First, we generate ...

9511daa60f53be95bf3b7b67382a4d9862c73b46 authored over 1 year ago by Nikita Sobolev <[email protected]>
Add ReadTheDocs configuration files (#15514)

9ad3f381ad28be818758e0b24443d36e95b5f943 authored over 1 year ago by Richard Si <[email protected]>
Constant fold more unary and binary expressions (#15202)

Now mypy can constant fold these additional operations:

- Float arithmetic
- Mixed int and f...

cee00306a2ded471658b71d2f1c9024bc22a62b1 authored over 1 year ago by Richard Si <[email protected]>
[mypyc] Fix i16 on Python 3.12 (#15510)

Two recent mypyc PRs didn't work together (#15470 and #15464). Fix them.

2bb70781e9c1d5a27b20b8e68980c19ec1ee25fb authored over 1 year ago by Jukka Lehtosalo <[email protected]>
[mypyc] Fix int operations on Python 3.12 (#15470)

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]>
Remove special handling of `kw_only` in `dataclass` plugin serialization (#15502)

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]>
Revert "Fix spurious errors on builtins.open (#15161)" (#15508)

ef87305e2aef19c57a3cd485106de825eb45a0c6 authored over 1 year ago by Shantanu <[email protected]>
[mypyc] Fix generators on Python 3.12 (#15472)

I think we relied on undocumented behavior on older Python versions. Now
it works consistently ...

efe84d492bd77f20c777b523f2e681d1f83f7ac4 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
[mypyc] Fix classes with __dict__ on 3.12 (#15471)

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]>
[mypyc] Support the i16 native integer type (#15464)

The `i16` type behaves the same as `i64` and `i32`, but is obviously
smaller. The PR is big, bu...

c23936931688f69b9b9782e7d79c123698458e66 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
Fix error location for class patterns (#15506)

Now it uses the same pattern for `.fail` as similar places:
-
https://github.com/python/mypy/b...

c099b20df02778455aaa3b5f59bb4deca096b8b0 authored over 1 year ago by Nikita Sobolev <[email protected]>
Fix async iterator body stripping (#15491)

Fixes #15489

2d8ad8ef240df262be80d9359e9f5892ea1f9ad3 authored over 1 year ago by Shantanu <[email protected]>
Unbreak CI (#15505)

pytest 7.4.0 was just released, and our CI on `master` is very red as a
result. Looks like we'r...

2f56b3f8ce1aed0cee7e163af2a0d442a3939023 authored over 1 year ago by Alex Waygood <[email protected]>
Remove `py` and `pytest-forked` test dependencies (#15501)

We don't use either of these in our own code at all. Neither of them
should be needed in 2023.
...

a47279b8626e3885580df1a33c179fc5b7e273ce authored over 1 year ago by Alex Waygood <[email protected]>
Use `()` for `get_function_sig_hook` docs (#15499)

c918d40b1500d141d14764ef967ca56ce633efb2 authored over 1 year ago by Nikita Sobolev <[email protected]>
Fix PEP 561 editable install test case (#15493)

2e304ca36df9975299769b3b40ec9d73ad4f68b4 authored over 1 year ago by Marc Mueller <[email protected]>
Do not import `TypedDict` from `mypy-extensions`, use `typing-extensions` (#15494)

All recent versions (declared in `setup.py`) have `TypedDict` there. So,
no need to use `mypy-e...

a5e316eafdd98ad73847e41436a3158e976ed769 authored over 1 year ago by Nikita Sobolev <[email protected]>
Rename unreachable_lines to skipped_lines (#15483)

In #15164 we've made it so that `# type: ignore`s in lines skipped in
semantic analysis would n...

aba35af62078155c9c18f05ae1506fe72dd6121a authored over 1 year ago by Ilya Priven <[email protected]>
Add pip as test requirement for PEP 660 editable installs (#15482)

7d031beb017450ac990c97e288d064290e3be55f authored over 1 year ago by Marc Mueller <[email protected]>
Bump typing_extensions dependency (#15488)

Co-authored-by: Alex Waygood <[email protected]>

88845188c8d1a16e528bb8881a02d374a33af370 authored over 1 year ago by Marc Mueller <[email protected]>
Switch from `flake8` to `ruff` (#15362)

304997bfb85200fb521ac727ee0ce3e6085e5278 authored over 1 year ago by Logan Hunt <[email protected]>
meta tests: fix flake (#15480)

Since tests are parallelized, the temporary test name must be unique.

e3210d07d945bd7b120dd0d6f20036ed664c4129 authored over 1 year ago by Ilya Priven <[email protected]>
Remove test failing on 3.12 (#15478)

1e5caa0dc349750c3eb6c5f448c7aab524e3ec38 authored over 1 year ago by Shantanu <[email protected]>
Use setuptools instead of distutils in docs (#15477)

7d5213d0c3490ab03ed5240f9a02dd95dd002793 authored over 1 year ago by Shantanu <[email protected]>
Enable strict optional for pythoneval tests (#15474)

15f210b104c253e866b50607126c7022258bd715 authored over 1 year ago by Marc Mueller <[email protected]>
[minor] Use keyword-only args for ErrorInfo (#15473)

d1fe7cf849dbdf2b41109db1ce5fc6293ce6ec0a authored over 1 year ago by Shantanu <[email protected]>
[mypyc] Fix gen_is_coroutine on Python 3.12 (#15469)

6907343e0191162aa03cc21d23489606e0997b4a authored over 1 year ago by Jukka Lehtosalo <[email protected]>
[mypyc] Don't use _PyErr_ChainExceptions on 3.12, since it's deprecated (#15468)

c0e6d2818bcab9a7313cebb54463d752004de844 authored over 1 year ago by Jukka Lehtosalo <[email protected]>
[mypyc] Add Python 3.12 feature macro (#15465)

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]>
Delete a ProperType join hack (#15461)

The tests added with this piece of code now pass even without it. It
looks like the crash was p...

32d14ed9928f04bdbd70b6381c5706024dfb4e70 authored over 1 year ago by Ivan Levkivskyi <[email protected]>
Foundations for non-linear solver and polymorphic application (#15287)

Fixes #1317
Fixes #5738
Fixes #12919
(also fixes a `FIX` comment that is more than 10 years ...

0873230ee60461110bd7bfde7ca3886878aae389 authored over 1 year ago by Ivan Levkivskyi <[email protected]>
Small improvements to protocol documentation (#15460)

91b67405a7cd9da551411ccb4e28493647208c11 authored over 1 year ago by Shantanu <[email protected]>
Add signature for dataclasses.replace (#14849)

Validate `dataclassses.replace` actual arguments to match the fields:

- Unlike `__init__`, th...

6f2bfff521e708f015af1eec5118db4600b829be authored over 1 year ago by Ilya Priven <[email protected]>
Improve handling of attribute access on class objects (#14988)

Fixes #14056

#14056 was originally reported as a mypyc issue (because that's how it
presente...

21cc1c74b7b531ef6e1024d35b364fe30077117b authored over 1 year ago by Alex Waygood <[email protected]>
Switch PEP 561 tests to a different build backend (#15451)

Fixes #15446

setuptools has broken how editable installs work. It seems like most
other buil...

db5b5af1201fff03465b0684d16b6489a62a3d78 authored over 1 year ago by Shantanu <[email protected]>
[mypyc] Use C99 compound literals for undefined tuple values (#15453)

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]>
Remove confusing instance variable example in cheat sheet (#15441)

cfec71798175fcbf030d6d114750d6fac454b3c9 authored over 1 year ago by Adel Atallah <[email protected]>
Fix re-added file with errors in mypy daemon (#15440)

Fixes #5343
Fixes #12249

This can potentially slow down runs in situations where multiple
u...

ceb4d7fd687ddbb94dc6c62fb6a2c46c383da54f authored over 1 year ago by Ivan Levkivskyi <[email protected]>