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
Source commit:
https://github.com/python/typeshed/commit/a544b75320e97424d2d927605316383c755cdac0
This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
a633a72836f9a12badd1e579286c41a92899b25c authored almost 2 years ago
Since the plugin provides superior type checking:
https://github.com/python/mypy/pull/13987#iss...
e1a82a2b87f1ff93a52e7b9c35fc1eef0e6ad0b6 authored almost 2 years ago
fed798a875f1fb7eb58d01179228c23c84599aa1 authored almost 2 years ago
250e6fda722e9618866ffa6b1d0438d64618b0cd authored almost 2 years ago
Fixes #14755.
This case is already covered by
`check-classes.test::testTypeUsingTypeCClassMe...
Fixes #12734, fixes #12909
730ba8ae1a8642ab9476138e33a77f1fb3eab5be authored almost 2 years ago
Instead of each float value being a heap-allocated Python object, use
unboxed C doubles to repr...
Follow-up to #14893
See #14892 for more discussion
486a51b6e49fff63c05b139185a560c85db7f7be authored almost 2 years ago
A type was used as error context, but types don't reliably have valid
line numbers during type ...
Fixes #14687
Fixes #14353
The latest version of `types-typed-ast` includes
https://github.com/python/typeshed/commit/62a8...
Fixes #14866
Basically does the potential todo I'd mentioned in #14017
e2e5d7f2c0ba9b0bca53fa7998341995d49a5591 authored almost 2 years ago
Helps with #2410, as suggested by BvB93 in
https://github.com/python/mypy/issues/2410#issuecomm...
Fixes #14871
Note that this doesn't affect the exit code; it's just about what
non-fatal not...
There are many places in mypy's code where `cast`s are currently used
unnecessarily. These can ...
By adding another overload, `CallableType -> CallableType`, we can avoid
the need for several `...
There are several places in the code base where we need to narrow
`list[Expression]` -> `list[S...
Split off from #14860, since this one is a no-brainer.
`args[0]` has just been narrowed to be...
32dd3c0f5c9fb2620084981236a54781842847bd authored almost 2 years agoe45b53e857f2f89288f65245b7b3f9a9c18447bf authored almost 2 years ago
267d37685a35e25eb985d56b6c6881ba574fcc7f authored almost 2 years ago
Previously most member expressions only produced the wildcard reference
such as `*.attr` when u...
Fixes: #14853
Adding support for `if` statements in the `dataclass` and `dataclass_transform`...
2e8dcbfa8f2aff9218a7cfe7cae1e83dead456cf authored almost 2 years ago
The `stubtest.py` cast is no longer needed -- I think the mypyc issue
was fixed by https://gith...
I reviewed documentation changes to be included in mypy 1.1.
2523095e9cf0ee8efbf7fd6bf58eab3f1845c03b authored almost 2 years agoFixes #14782
Currently, mypy issues a false positive if you try to unpack an enum
class:
...
b6cb0ed4b2e2155eddaed0bb303631ddd04ad44b authored almost 2 years agoFixes #14843
31f70d7d9cafac4dbbfddcbd81c302185593f1f4 authored almost 2 years agoFixes #14841.
`types-backports` is obsolete and leads to incorrect suggestions; see
the issu...
a5d03e2496a392a2bc9ae2d4d0e74e49245d39c0 authored almost 2 years ago
Validate `attr.evolve` calls to specify correct arguments and types.
The implementation makes...
bbc9cce76286d6d92890a9ecfa1ca4ceb6b07caf authored almost 2 years ago
In #4070, `CallableType.__init__` was changed to accept `arg_names:
Sequence[str | None]` so we...
acde81b13a56d656a899a50ad24c83f7f49aca8c authored almost 2 years ago
634224acb36ff84199cb7cb908e0114d8ee332b3 authored almost 2 years ago
Source commit:
https://github.com/python/typeshed/commit/257e287fec930db1f42ddf0ca1f53e33c9a9398b
This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
aa9e82eef34e40a8d169447ed9e024faa7d31145 authored almost 2 years ago
Since the plugin provides superior type checking:
https://github.com/python/mypy/pull/13987#iss...
9d84db24a00ea1df11da60f486bf9b6c7cf18382 authored almost 2 years ago
c91849dc2d65b10cdadddaafc1139a5d8ebdf154 authored almost 2 years ago
Fixes #14819.
Mypy currently silently infers an `Any` type when unpacking an iterator
that d...
Individual test suites grew to have distinct approaches for selecting or
excluding modules / sy...
The change is quite simple: instead of manually unpacking the return
type of `find_item`, we us...
Previously type aliases were looked up from the globals dictionary, even
if the target was a pr...
If the class has no subclasses, we can statically bind the call target:
```
class C:
@cla...
By default, Python outputs spaces after commas and colons when dumping
JSON data. This is norma...
Typeshed has a more accurate annotation for this attribute these days
dc5ff299a2351af5d322aea21002550ebd6161b8 authored almost 2 years ago
While working on #14483, we discovered that variable inheritance didn't
work quite right. In pa...
Closes #14750
c245e91e1ba4d23ff28e77d08f5e103c43733bf5 authored almost 2 years agoe7126349c4e7dc1ea97a9105e028ea64d5ba947d authored almost 2 years ago
When run with `--export-ref-info`, store line-level reference
information in the cache, in a JS...
Now users can disable the first kind of error, but not the second kind
(which is always a synta...
- The latest release of `types-setuptools` started causing type-check
errors (and, therefore, m...
Fixes #14783.
Running mypy on this snippet of code currently causes a crash if you
have the ...
In general code that follows any calls to methods annotated with
`NoReturn` is considered unrea...
The mypyc build is failing on `master` due to the latest release of
`types-setuptools`: see, e....
A simple type-only change since mypyc explicitely uses setuptools'
monkeypatching. And `setup.p...
Previously stdout from mypy daemon was propagated to the client, but
some verbose logging is wr...
`dataclasses` uses a `__dataclass_fields__` attribute on each class to
mark that it is a datacl...
Adds support for triggering rechecking of downstream classes when
`@dataclass_transform` is add...
The release-1.1 branch now exists.
75aca652711b121672266dc38c63a2bc27e83603 authored almost 2 years agoResolves #14328
Remove the sqlalchemy comment because it's now a PEP 561 package
ed3a6c1c019a8098f65e768697f1048d1f97a4a1 authored almost 2 years agoRelease notes: https://github.com/PyCQA/isort/releases/tag/5.11.5
This resolves an issue with...
007960c08ba443b48e703399f9975db7922d9400 authored almost 2 years ago
This format allows editors and terminals that support linking to
specific lines in files to go ...
Syncing typeshed again to make sure
https://github.com/python/typeshed/pull/9746 gets into the ...
Fixes a bug introduced in https://github.com/python/mypy/pull/14384
wherein a union that includ...
#14719 fixed some merge conflicts
ef3187a64d10d1aacbf1d28171b4af00dcd1cb64 authored almost 2 years ago
Source commit:
https://github.com/python/typeshed/commit/75cd3022154f3456e59711865d6539af38fb3aae
This is allegedly causing large performance problems, see 13821
typeshed/8231 had zero hits on ...
3a240111eb412f879b4c129ebd8781b70b3ab582 authored almost 2 years ago
Since the plugin provides superior type checking:
https://github.com/python/mypy/pull/13987#iss...
874afd970d1eb270e050a38bcbb8b9b88f7f3f4f authored almost 2 years ago
Unlike every other slot, power slots are ternary. Some special casing
had to be done in generat...
Modifies arguments parsed from the AST to use the AST's row and column
information. Modifies fu...
An optimization to make iterating over dict.keys(), dict.values() and
dict.items() faster cause...
Debian does build 32bit (on Linux), and there was a recent regression
This PR would have caug...
0bbeab8b26825ee94b8fdeda16f2aa589be4282d authored almost 2 years agoThese are analogous to `dataclasses.field`/`dataclasses.Field`.
Like most dataclass_transform...
4635a8c80f6b797c0ce3e53b909dcb4d5b175d1f authored almost 2 years agoFixes #14638
TBH I don't remember why do we need to create the "incomplete" type
alias (wit...
Follow up on some of the recurring feedback from #14580 and #14657.
There are many error messag...
Add 64-bit and 32-bit variants of the test.
Fixes #14633.
563e29dedc2a74af868076cce5c61d535cac3d6e authored almost 2 years ago
Extends the existing decorator support to include overloads. This
doesn't require much extra wo...
This PR removes the unused `imported_names` field from the `ImportAll`
node class. Nothing outs...
Support dataclass_transforms that use inheritance or metaclasses rather
than decorators. This o...
The subject needs to be processed outside of match statement and not as
part of the first branc...
c23e831ab0e7ec827c38cc830d3ebd3f4c43cd75 authored almost 2 years ago
Fixes #14631
786c7b07040515ccdc440005b8ff054fc6c0ebce authored almost 2 years agoFixes #14626.
I believe changing the way that we analyze call expression makes sense
(first,...
PEP 681 defines several parameters for `typing.dataclass_transform`.
This commit adds support f...
f50561419fe21ca9f4cf64a52a0eddfc10f5ae74 authored almost 2 years ago
Fixes #14250
This one is interesting. It looks like most likely this was caused by my
PR htt...
This commit adds quotes around Python identifiers in two
error messages, and points the error f...
Ref #7178
This code is used for some TypedDict errors, but `misc` was used for
others. I mak...
The PR that added the error code didn't make into 1.0, so I make it a
sub-code, to improve back...
Ref #4717
Although function use case is much more important, the variable
assignment should ...
When uploading 1.0.0, I realized that this script needs updating.
8cc024e0b721f159caee2faf9377cc1c9a1997fe authored almost 2 years ago
When a PEP 604 Union exists in the runtime, stubgen was generating a
`Union[...]` syntax withou...
I think that native integers work well enough to enable them outside
tests.
Require a more r...
dc034786fdfdf5bf4f32c4cc5cf3aff3fc62c11a authored almost 2 years ago6787e51f8fa21a5740995c5eb8a29b6c59464767 authored almost 2 years ago
Fixes #2427
I also add some special logic, so that `# type: ignore[assignment]` will cover `[...
07f672148d2c3365b8fe3e879bee7c0d9936fb11 authored almost 2 years ago
Generate specialized, efficient IR for various operations on bools.
These are covered:
* Bool ...
It would raise even if there were only non-trait bases, leading to this
slightly confusing situ...
Require that all the attribute definitions have the same type.
Overriding with a different type...