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

Sync typeshed

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

85dac76422a285ae9fcaf6c9ffb2c0ab2f774adb authored almost 2 years ago
Revert sum literal integer change (#13961)

This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on ...

a633a72836f9a12badd1e579286c41a92899b25c authored almost 2 years ago
Revert typeshed ctypes change (#14128)

Since the plugin provides superior type checking:
https://github.com/python/mypy/pull/13987#iss...

1ceeb1fdbbfcc6890c6bf89c93146a65ae510db7 authored almost 2 years ago
Revert use of `ParamSpec` for `functools.wraps`

e1a82a2b87f1ff93a52e7b9c35fc1eef0e6ad0b6 authored almost 2 years ago
Fix tests

fed798a875f1fb7eb58d01179228c23c84599aa1 authored almost 2 years ago
Remove use of LiteralString in builtins (#13743)

250e6fda722e9618866ffa6b1d0438d64618b0cd authored almost 2 years ago
Handle type[TypeVar] (#14756)

Fixes #14755.

This case is already covered by
`check-classes.test::testTypeUsingTypeCClassMe...

9cb4872c2c8ab8a4d8a97fcc902b2c7deb268569 authored almost 2 years ago
Don't duplicate ParamSpec prefixes and properly substitute Paramspecs (#14677)

Fixes #12734, fixes #12909

730ba8ae1a8642ab9476138e33a77f1fb3eab5be authored almost 2 years ago
[mypyc] Use a native unboxed representation for floats (#14880)

Instead of each float value being a heap-allocated Python object, use
unboxed C doubles to repr...

d05974b9b099ec755fd1c689a7d2c7150ea313af authored almost 2 years ago
Fix misleading TODO comment in `testIterableUnpackingWithGetAttr` (#14894)

Follow-up to #14893

See #14892 for more discussion

486a51b6e49fff63c05b139185a560c85db7f7be authored almost 2 years ago
Fix line number if __iter__ is incorrectly reported as missing (#14893)

A type was used as error context, but types don't reliably have valid
line numbers during type ...

895a8215293ad99e4d21c2bdc0d3d476994abfae authored almost 2 years ago
Fix crash on ParamSpec in incremental mode (#14885)

Fixes #14687
Fixes #14353

4365dad81a248f336ee1126acbe7f8692791ca3b authored almost 2 years ago
Fix selfcheck with the latest version of `types-typed-ast` (#14883)

The latest version of `types-typed-ast` includes
https://github.com/python/typeshed/commit/62a8...

70d4bb27a2733e43958dc5046befdc16ed297a5c authored almost 2 years ago
Fix incompatible overrides of overloaded generics with self types (#14882)

Fixes #14866

Basically does the potential todo I'd mentioned in #14017

e2e5d7f2c0ba9b0bca53fa7998341995d49a5591 authored almost 2 years ago
Allow SupportsIndex in slice expressions (#14738)

Helps with #2410, as suggested by BvB93 in
https://github.com/python/mypy/issues/2410#issuecomm...

fb6b8bc5a041b7cf114b81a894e7248de9e230ae authored almost 2 years ago
Add error code to typing_extensions suggestion (#14881)

Fixes #14871

Note that this doesn't affect the exit code; it's just about what
non-fatal not...

30985748787a1a907ce413114dd5dbcd5f1c6fd7 authored almost 2 years ago
Use `assert`s instead of `cast`s where possible (#14860)

There are many places in mypy's code where `cast`s are currently used
unnecessarily. These can ...

fddd5c51395609f662fc3c5f0a42451eeedea61d authored almost 2 years ago
Improve the signatures of `expand_type` and `expand_type_by_instance` (#14879)

By adding another overload, `CallableType -> CallableType`, we can avoid
the need for several `...

4b3722fa89505b1663110281c5341adc9a4be754 authored almost 2 years ago
Add a helper function for narrowing `list[Expression]` to `list[StrExpr]` (#14877)

There are several places in the code base where we need to narrow
`list[Expression]` -> `list[S...

106d57ebcc7b9567bcebc57c3a39c72dd47104c6 authored almost 2 years ago
Remove unnecessary cast in `semanal_namedtuple.py` (#14875)

Split off from #14860, since this one is a no-brainer.

`args[0]` has just been narrowed to be...

32dd3c0f5c9fb2620084981236a54781842847bd authored almost 2 years ago
[mypyc] Add annotation in setup.py to avoid type ignore (#14874)

e45b53e857f2f89288f65245b7b3f9a9c18447bf authored almost 2 years ago
Update adopting strict docs for 1.0 (#14865)

267d37685a35e25eb985d56b6c6881ba574fcc7f authored almost 2 years ago
Generate better reference information for member expressions (#14864)

Previously most member expressions only produced the wildcard reference
such as `*.attr` when u...

287c45a8631d09b1808e8a107f09c801b083b9bf authored almost 2 years ago
Support `if` statements in `dataclass` and `dataclass_transform` plugin (#14854)

Fixes: #14853

Adding support for `if` statements in the `dataclass` and `dataclass_transform`...

2e8dcbfa8f2aff9218a7cfe7cae1e83dead456cf authored almost 2 years ago
Remove unnecessary casts in `stubtest.py` and `types.py` (#14856)

The `stubtest.py` cast is no longer needed -- I think the mypyc issue
was fixed by https://gith...

dfe0281424727fca5acbaea4c7d98b83385df7bb authored almost 2 years ago
Some minor documentation tweaks (#14847)

I reviewed documentation changes to be included in mypy 1.1.

2523095e9cf0ee8efbf7fd6bf58eab3f1845c03b authored almost 2 years ago
Allow iterable class objects to be unpacked (including enums) (#14827)

Fixes #14782

Currently, mypy issues a false positive if you try to unpack an enum
class:

...

b6cb0ed4b2e2155eddaed0bb303631ddd04ad44b authored almost 2 years ago
Fix narrow for walrus expressions used in match statements (#14844)

Fixes #14843

31f70d7d9cafac4dbbfddcbd81c302185593f1f4 authored almost 2 years ago
stubinfo: remove two obsolete packages (#14842)

Fixes #14841.

`types-backports` is obsolete and leads to incorrect suggestions; see
the issu...

da6e4a0e29e914af826101d6956b62e07f9ce115 authored almost 2 years ago
Remove compatibility branches in test fixtures for dead Python versions (#14839)

a5d03e2496a392a2bc9ae2d4d0e74e49245d39c0 authored almost 2 years ago
Add signature for attr.evolve (#14526)

Validate `attr.evolve` calls to specify correct arguments and types.

The implementation makes...

bbc9cce76286d6d92890a9ecfa1ca4ceb6b07caf authored almost 2 years ago
CallableType.copy_modified: accept sequence for arg_names (#14840)

In #4070, `CallableType.__init__` was changed to accept `arg_names:
Sequence[str | None]` so we...

2ab1d82ee1e01f02e963fdec8d52811002b87bdc authored almost 2 years ago
Revert ParamSpec in functools.wraps on an ongoing basis (#14837)

acde81b13a56d656a899a50ad24c83f7f49aca8c authored almost 2 years ago
Remove use of LiteralString in builtins (#13743)

634224acb36ff84199cb7cb908e0114d8ee332b3 authored almost 2 years ago
Sync typeshed

Source commit:
https://github.com/python/typeshed/commit/257e287fec930db1f42ddf0ca1f53e33c9a9398b

6160fffefdb2bda59f147eb6334addcdb295d01e authored almost 2 years ago
Revert sum literal integer change (#13961)

This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on ...

aa9e82eef34e40a8d169447ed9e024faa7d31145 authored almost 2 years ago
Revert typeshed ctypes change (#14128)

Since the plugin provides superior type checking:
https://github.com/python/mypy/pull/13987#iss...

83ecc1717269b421a624ec7c81726dcd184ece1e authored almost 2 years ago
Revert use of `ParamSpec` for `functools.wraps`

9d84db24a00ea1df11da60f486bf9b6c7cf18382 authored almost 2 years ago
Remove/improve some more casts to `Any` (#14828)

c91849dc2d65b10cdadddaafc1139a5d8ebdf154 authored almost 2 years ago
Fix `Any` inference when unpacking iterators that don't directly inherit from `typing.Iterator` (#14821)

Fixes #14819.

Mypy currently silently infers an `Any` type when unpacking an iterator
that d...

456dcbdd6a2f9b36249e0e7d31e521f5678a8235 authored almost 2 years ago
Unify test suites' module exclusion logic (#14575)

Individual test suites grew to have distinct approaches for selecting or
excluding modules / sy...

099500e4b763f0819954810b04a7486888d6085d authored almost 2 years ago
Fix unpack with overloaded `__iter__` method (#14817)

The change is quite simple: instead of manually unpacking the return
type of `find_item`, we us...

bed49ab3781f28be2a6cf5c6665934a8fa2bb5f2 authored almost 2 years ago
[mypyc] Use primitives for calls via type aliases (#14784)

Previously type aliases were looked up from the globals dictionary, even
if the target was a pr...

90b9a1ad0437cff1e8ad8055a769b4e00f322089 authored almost 2 years ago
[mypyc] Optimize classmethod calls via cls (#14789)

If the class has no subclasses, we can statically bind the call target:
```
class C:
@cla...

43883fae240f617bc5fe665a41cf23ba6bb35693 authored almost 2 years ago
Reduce size of JSON data in Mypy cache (#14808)

By default, Python outputs spaces after commas and colons when dumping
JSON data. This is norma...

9393c22a1635e9d996a622a09e8464b1b5b51f30 authored almost 2 years ago
Remove an unnecessary `cast` to `Any` (#14816)

Typeshed has a more accurate annotation for this attribute these days

dc5ff299a2351af5d322aea21002550ebd6161b8 authored almost 2 years ago
[used before def] improve handling of global definitions in local scopes (#14517)

While working on #14483, we discovered that variable inheritance didn't
work quite right. In pa...

a6181107898c7eaccd396664e23adc84ab8e3efd authored almost 2 years ago
Add test and docs for top level `mypy: disable-error-code` comment (#14810)

Closes #14750

c245e91e1ba4d23ff28e77d08f5e103c43733bf5 authored almost 2 years ago
Add `yaml` extension to `.editorconfig` (#14809)

e7126349c4e7dc1ea97a9105e028ea64d5ba947d authored almost 2 years ago
[undocumented] Optionally export line-level information about references (#14805)

When run with `--export-ref-info`, store line-level reference
information in the cache, in a JS...

de2613460a1031f276fcb142ca417ad8c7781e36 authored almost 2 years ago
Add a separate error code for top level `await` (#14801)

Now users can disable the first kind of error, but not the second kind
(which is always a synta...

494802fafff3e7a192ef9b60b01505704b82f304 authored almost 2 years ago
Unpin the `types-setuptools` build dependency (#14787)

- The latest release of `types-setuptools` started causing type-check
errors (and, therefore, m...

243f584d43e6eb316920f3155067ce7c1b65d473 authored almost 2 years ago
Fix `--strict-equality` crash for instances of a class generic over a `ParamSpec` (#14792)

Fixes #14783.

Running mypy on this snippet of code currently causes a crash if you
have the ...

1853222023ed6b094af6b21029f424c176754315 authored almost 2 years ago
Honor `NoReturn` as `__setitem__` return type to mark unreachable code. (#12572)

In general code that follows any calls to methods annotated with
`NoReturn` is considered unrea...

30d0c990ce0510e0ca3134caad4c6cec71143eda authored almost 2 years ago
Pin `types-setuptools` to <67.4.0.2 (#14788)

The mypyc build is failing on `master` due to the latest release of
`types-setuptools`: see, e....

800e8ffdf17de9fc641fefff46389a940f147eef authored almost 2 years ago
Support next types-setuptools update (#14781)

A simple type-only change since mypyc explicitely uses setuptools'
monkeypatching. And `setup.p...

ab7b69a0532a5fe976c9c2a1b713d82d630692a4 authored almost 2 years ago
Show logging written to stderr in mypy daemon (#14775)

Previously stdout from mypy daemon was propagated to the client, but
some verbose logging is wr...

284142d6e29d4588107f5c68f95c43986a2e26e5 authored almost 2 years ago
[dataclass_transform] include __dataclass_fields__ in transformed types (#14752)

`dataclasses` uses a `__dataclass_fields__` attribute on each class to
mark that it is a datacl...

54635dec2379e2ac8b65b6ef07778015c69cfb6a authored almost 2 years ago
[dataclass_transform] detect transform spec changes in incremental mode (#14695)

Adds support for triggering rechecking of downstream classes when
`@dataclass_transform` is add...

29bcc7ffe1118d01c374a12957b09e4d42c1c69e authored almost 2 years ago
Bump dev version to 1.2.0+dev (#14759)

The release-1.1 branch now exists.

75aca652711b121672266dc38c63a2bc27e83603 authored almost 2 years ago
Suggestions for pandas-stubs and lxml-stubs (#14737)

Resolves #14328

Remove the sqlalchemy comment because it's now a PEP 561 package

ed3a6c1c019a8098f65e768697f1048d1f97a4a1 authored almost 2 years ago
Update isort to 5.11.5 (#14735)

Release notes: https://github.com/PyCQA/isort/releases/tag/5.11.5

This resolves an issue with...

007960c08ba443b48e703399f9975db7922d9400 authored almost 2 years ago
Stubtest: Link directly to line (#14437)

This format allows editors and terminals that support linking to
specific lines in files to go ...

c03e979ca06c3bf082a4cd07458a1bc3205dc5e5 authored almost 2 years ago
Sync typeshed (#14733)

Syncing typeshed again to make sure
https://github.com/python/typeshed/pull/9746 gets into the ...

8a487ff248783fdc2fc0c1852a15f9fd6fbc12e8 authored almost 2 years ago
Fix for bug with `in` operation on optionals in `no-strict-optional` mode (#14727)

Fixes a bug introduced in https://github.com/python/mypy/pull/14384
wherein a union that includ...

c99133f405f286ed3429c809e9ae2cb3faaa2ceb authored almost 2 years ago
Update commit hashes in sync typeshed script (#14720)

#14719 fixed some merge conflicts

ef3187a64d10d1aacbf1d28171b4af00dcd1cb64 authored almost 2 years ago
Sync typeshed

Source commit:
https://github.com/python/typeshed/commit/75cd3022154f3456e59711865d6539af38fb3aae

584a5d93d2bb1dc2df40e641049da62e276fcd2c authored almost 2 years ago
Revert sum literal integer change (#13961)

This is allegedly causing large performance problems, see 13821

typeshed/8231 had zero hits on ...

3a240111eb412f879b4c129ebd8781b70b3ab582 authored almost 2 years ago
Revert typeshed ctypes change (#14128)

Since the plugin provides superior type checking:
https://github.com/python/mypy/pull/13987#iss...

f968d6ce073f03f3cf26417d6134f22aee3ad995 authored almost 2 years ago
Remove use of LiteralString in builtins (#13743)

874afd970d1eb270e050a38bcbb8b9b88f7f3f4f authored almost 2 years ago
[mypyc] Support __pow__, __rpow__, and __ipow__ dunders (#14616)

Unlike every other slot, power slots are ternary. Some special casing
had to be done in generat...

bcf60ac7b7aba645bdbb2bf803d43c51f9346197 authored almost 2 years ago
Give arguments a more reasonable location (#14562)

Modifies arguments parsed from the AST to use the AST's row and column
information. Modifies fu...

d5860707544bdb3e51442bf6bd97b971f8c01d61 authored almost 2 years ago
[mypyc] (Re-)Support iterating over an Union of dicts (#14713)

An optimization to make iterating over dict.keys(), dict.values() and
dict.items() faster cause...

7237831d64c051b2d6e4d99970f9b6ccf7a7bfce authored almost 2 years ago
Test with 32-bit Python (#14634)

Debian does build 32bit (on Linux), and there was a recent regression

This PR would have caug...

0bbeab8b26825ee94b8fdeda16f2aa589be4282d authored almost 2 years ago
[dataclass_transform] support field_specifiers (#14667)

These are analogous to `dataclasses.field`/`dataclasses.Field`.

Like most dataclass_transform...

4635a8c80f6b797c0ce3e53b909dcb4d5b175d1f authored almost 2 years ago
Fix generic TypedDict/NamedTuple fixup (#14675)

Fixes #14638

TBH I don't remember why do we need to create the "incomplete" type
alias (wit...

ec511c63547430765ef03aadd9a67321c5373350 authored almost 2 years ago
consolidate literal bool argument error messages (#14693)

Follow up on some of the recurring feedback from #14580 and #14657.
There are many error messag...

0b4ccaeb7dc282199e727978bc40d0fdde1897c9 authored almost 2 years ago
[mypyc] Fix test case testI64Cast on 32-bit architectures (#14691)

Add 64-bit and 32-bit variants of the test.

Fixes #14633.

563e29dedc2a74af868076cce5c61d535cac3d6e authored almost 2 years ago
[dataclass_transform] support function overloads (#14651)

Extends the existing decorator support to include overloads. This
doesn't require much extra wo...

ad82257170636871a0062ebe6fb82fb45523f580 authored almost 2 years ago
Remove unused `imported_names` field (#14678)

This PR removes the unused `imported_names` field from the `ImportAll`
node class. Nothing outs...

4192701c115de2f54fd57218308d4ed0e262effb authored almost 2 years ago
[dataclass_transform] support subclass/metaclass-based transforms (#14657)

Support dataclass_transforms that use inheritance or metaclasses rather
than decorators. This o...

99b04cac8b216bb426b1fab5a3ff447d1451c967 authored almost 2 years ago
[used before def] handle walrus declaration in match subject correctly (#14665)

The subject needs to be processed outside of match statement and not as
part of the first branc...

4261e51276cb2b45d1376a3b4ef45ac9030d19c7 authored almost 2 years ago
Allow overlapping comparisons between bytes-like types (#14658)

c23e831ab0e7ec827c38cc830d3ebd3f4c43cd75 authored almost 2 years ago
Fix crash on deferred value constrained TypeVar (#14642)

Fixes #14631

786c7b07040515ccdc440005b8ff054fc6c0ebce authored almost 2 years ago
[used before def] correctly handle walrus operator (#14646)

Fixes #14626.

I believe changing the way that we analyze call expression makes sense
(first,...

6b56dc01ba919a951936e3e47602e5d3f5d5fee4 authored almost 2 years ago
[dataclass_transform] Support default parameters (#14580)

PEP 681 defines several parameters for `typing.dataclass_transform`.
This commit adds support f...

9e85f9b862287f86498f5fb084a13504d09326fd authored almost 2 years ago
Fix mypy daemon docs link in README (#14644)

f50561419fe21ca9f4cf64a52a0eddfc10f5ae74 authored almost 2 years ago
Fix crash on star unpacking to underscore (#14624)

Fixes #14250

This one is interesting. It looks like most likely this was caused by my
PR htt...

891e035ff661deec96479e990a6a7695fdfe8af6 authored almost 2 years ago
Adjust inconsistent dataclasses plugin error messages (#14637)

This commit adds quotes around Python identifiers in two
error messages, and points the error f...

f6a8037cccacfe60459d4e64b962d31388a7fd3e authored almost 2 years ago
Consistently use literal-required error code for TypedDicts (#14621)

Ref #7178

This code is used for some TypedDict errors, but `misc` was used for
others. I mak...

35b2926adc5aad67ba6e07d4c7c5d91daffb286b authored almost 2 years ago
Make typeddict-unknown-key sub-code of typeddict-item (#14620)

The PR that added the error code didn't make into 1.0, so I make it a
sub-code, to improve back...

8d93b67fa19d53dfef5a7af6f5c1b8b2ee76d4a6 authored almost 2 years ago
Consistently use type-abstract error code (#14619)

Ref #4717

Although function use case is much more important, the variable
assignment should ...

11c63aa6aa50ec4b9b71c57631e4813c65773e85 authored almost 2 years ago
update upload-pypi script to the new versioning scheme (#14625)

When uploading 1.0.0, I realized that this script needs updating.

8cc024e0b721f159caee2faf9377cc1c9a1997fe authored almost 2 years ago
stubgen: preserve PEP 604 Unions in generated pyi files (#14601)

When a PEP 604 Union exists in the runtime, stubgen was generating a
`Union[...]` syntax withou...

725214b6bb75e2dd4a01a21ed707c311d15d7bd3 authored almost 2 years ago
[mypyc] Enable native integers outside tests (#14606)

I think that native integers work well enough to enable them outside
tests.

Require a more r...

dc034786fdfdf5bf4f32c4cc5cf3aff3fc62c11a authored almost 2 years ago
Fix a few typos in mypyc's comments and docstrings (#14617)

6787e51f8fa21a5740995c5eb8a29b6c59464767 authored almost 2 years ago
Use a dedicated error code for assignment to method (#14570)

Fixes #2427

I also add some special logic, so that `# type: ignore[assignment]` will cover `[...

07f672148d2c3365b8fe3e879bee7c0d9936fb11 authored almost 2 years ago
[mypyc] Generate faster code for bool comparisons and arithmetic (#14489)

Generate specialized, efficient IR for various operations on bools.
These are covered:
* Bool ...

5614ffa0ef87e604e07e3f83079d0499c7d22886 authored almost 2 years ago
[mypyc] Raise "non-trait base must be first..." error less frequently (#14468)

It would raise even if there were only non-trait bases, leading to this
slightly confusing situ...

27f51fc667e9ceaba12496276fce1db577221bcb authored almost 2 years ago
[mypyc] Detect if attribute definition conflicts with base class/trait (#14535)

Require that all the attribute definitions have the same type.
Overriding with a different type...

332bb2d4c7a4c2093f1349b18c05431c96bdb4d9 authored almost 2 years ago