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
Add some run tests to run-singledispatch.test for situations that are
likely to be common or ar...
Fixes #708 and Fixes #5485
Prevent handling as bounded method of callable members declared as...
6ab0efcc2ae3bcf649098b86d1edbcab2e4b1e9b authored over 3 years ago by wyfo <[email protected]>
This frees everything created in the generated initialization function
so that we don't leak me...
Add support for adding -xfail to the end of a test case in a .test file
to make pytest mark it ...
Source commit:
https://github.com/python/typeshed/commit/c4da3757d7a513f6caf8924c59b6c16aed55c9...
Co-authored-by: Shantanu <[email protected]>
9f6b3731367a975da84fa7a0e96ced46716b6e16 authored over 3 years ago by Adrian Freund <[email protected]>### Description
Don't annotate unknown argument and return types with explicit `Any`. Also, f...
55bd489ce5ef5ef7bb0e7d36742c9974893bd218 authored over 3 years ago by Sebastian Rittau <[email protected]>While reading the source code of this file, I have noticed a `TODO` that was easy to fix.
e2010ccc2f039aa285b16695873faf136fe365dc authored over 3 years ago by Nikita Sobolev <[email protected]>
Previously, the generation of a variable initialized (= ...) was
inconsistent between top-level...
### Description
Use `typing.NamedTuple` in stubgen, instead of `collections.namedtuple`.
#...
7e1eb3c67afa1365baa580de24e8756da5203721 authored over 3 years ago by Sebastian Rittau <[email protected]>1cad082fa0df9110c8860d989003fb36a3b49da5 authored over 3 years ago by Sebastian Rittau <[email protected]>
It also doesn't show errors, making it useful in CI jobs.
Example:
```
$ mypy --install-typ...
The list of location in the second paragraph was missing pyproject.toml and the user config file...
0e6e2f99e3d06eacbedaff5e5411b6fd860d7044 authored over 3 years ago by Konstantin Weddige <[email protected]>
Keep track of supported Python versions of legacy bundled packages, and
only suggest a stub pac...
Previously we used `google` as a package prefix for `google.protobuf`.
That wasn't correct, sin...
cd35d486e7fdea0addea086b57ac2679c8d71544 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
It doesn't exist, since it was removed from typeshed in October (python/typeshed#4606). Similarl...
d95f24ba2413e699d1d1cfde66fdb4176ee6dc95 authored over 3 years ago by Jelle Zijlstra <[email protected]>Fixes mypyc/mypyc#851
This fixes a bug where code compiled with mypyc would crash on from imp...
7bb1f3718e9e527ea01feb11530af167721dc0b4 authored over 3 years ago by pranavrajpal <[email protected]>And avoid triggering mypy assertion failures on errors.
Fixes mypyc/mypyc#866.
Opened mypyc/...
This could result in a crash if the second evaluation results
in a shorter list, such as in thi...
Closes mypyc/mypyc#770.
0a6a48c4278f99417fe81f7d3f0194edeaec7e46 authored over 3 years ago by 97littleleaf11 <[email protected]>Fixes mypyc/mypyc#842
0af616e936563cc7f5861e88348daaa3654b7c0c authored over 3 years ago by James <[email protected]>
If an error occurs while running the initialization code, set the
CPyModule_<name>_internal mod...
Native classes now must declare attributes that can be deleted.
This improves type safety and...
b562cc235dcd2e71d2fed1aad72a4a8400bc307d authored over 3 years ago by Jukka Lehtosalo <[email protected]>
It has to be specified as a per-module option, if the library used
to have bundled stubs. This ...
When upgrading to mypy 0.900, most projects will see some errors about
missing stubs. Projects ...
4e2fca8ff8a384a3e7c29f3ca861c8ea34af4362 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
28718facbeea5b3c33ec96bc335bb018d3b0a395 authored over 3 years ago by Ilya Konstantinov <[email protected]>
8853f226498a910556a46e0a201198c7a1413ac1 authored over 3 years ago by Ilya Konstantinov <[email protected]>
98ac4874f84dc83e0b9845ef10b73c1799111a7a authored over 3 years ago by Ilya Konstantinov <[email protected]>
e702679ede667b8ea48685326a2ca54b3c95fdd2 authored over 3 years ago by wwuck <[email protected]>
Helps with #10542
Co-authored-by: Shantanu <[email protected]>
...
Since this code path involves mypy recommending installation of a stub
package, I thought I'd r...
Resolves #10538
d57d5d146483df5304d3553c14c9b97d4f62ade6 authored over 3 years ago by Adam Weeden <[email protected]>Fixes mypyc/mypyc#776.
This is a super quick workaround. So far the issue mostly (if not comp...
61c346230cf4960c9766f7c2b5bd3312b47f74da authored over 3 years ago by Xuanda Yang <[email protected]>
* Move simple tuple and list creation to new functions. Each specializer only
focus on one s...
799e40c01221ebbbab8977680a00d7b79aad6e13 authored over 3 years ago by Saiprasad Kale <[email protected]>
This fixes `--custom-typeshed-dir`.
8628fa0b842162b03621e56fbf4fe337a3fd50c8 authored over 3 years ago by Jukka Lehtosalo <[email protected]>b633ae123b816e45058853d42bbd9a1f82af1a23 authored over 3 years ago by Dixith <[email protected]>
https://github.com/python/typeshed/pull/5516 makes changes to getattr
that would introduce type...
In python/typeshed#5473, I tried to switch a number of `inspect` functions to use the new `TypeG...
8e909e438e39b3bb4dc488dd8d78f0e721e81ae7 authored over 3 years ago by Jelle Zijlstra <[email protected]>de6fd6a462282e7ba35506e74c3e22918d0f63e9 authored over 3 years ago by Dixith <[email protected]>
Changes the messages "Inconsistent use of * in function", "is a type variable and only valid in ...
eb6f09288625dcc147db51939dfaa524be67fc0a authored over 3 years ago by Dixith <[email protected]>
This is mostly the same as typeshed. The biggest difference is that we
don't post the "no effec...
It doesn't work with mypy daemon.
Fixes #10015.
1e220b107db1868b3b039cf9299bfceba8046741 authored over 3 years ago by Jukka Lehtosalo <[email protected]>Also don't install a stub package for `mypy_extensions`.
There are two reasons why we're doin...
58aef054dccb1b49acd1f6769ac2a18c2525dd63 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
This could sometimes happen with protobuf stubs. The issue is a quite
tricky one, since it only...
This came up in python/typeshed#5473: mypy started crashing when
I made a function return TypeG...
c605579af8c2a315f0b9fce40c7c61dd21610f1f authored over 3 years ago by Yurii Karabas <[email protected]>
Source commit:
https://github.com/python/typeshed/commit/17bc1d83ea5ba4c3fb8363259993047727caf6...
0ce3eb95ad586969a69aa124b8392a4e0b41d73f authored over 3 years ago by Jukka Lehtosalo <[email protected]>
This enables custom mypy configurations where only Python 3 is supported.
329e61507da2011b085738a825974433d09f0c6a authored over 3 years ago by Jukka Lehtosalo <[email protected]>Part of #7445
fa1931dbdba285456cf8efe55eb8699ac206b4ba authored over 3 years ago by Dixith <[email protected]>
Port #5452
We didn't have the global permission set, so maybe it wasn't broken, but
explicitly...
030d6614da879aa4d42dc89d9b7881a86cfaa91d authored over 3 years ago by Akuli <[email protected]>
0d5a1dfde9af766bf7523de2a5a520a5d786bb2a authored over 3 years ago by Sebastian Rittau <[email protected]>
Previously these couldn't be used in compiled classes.
__setitem__ and __delitem__ are implem...
5a105d1ffae0f005ad3cb6d975a5edf31155f529 authored over 3 years ago by Jukka Lehtosalo <[email protected]>6fac70122c177340d1a1a49747ba244d13a29efd authored over 3 years ago by Arjun <[email protected]>
bc8565fee7e38bcb2cdd6a48ddc924ef09b87f54 authored over 3 years ago by Arjun <[email protected]>
Fixes #10454
The logic here is similar to what we do in visit_call_expr_inner
5eb4de443269b906d2e8b2292dbf472ce17d0e1f authored over 3 years ago by Shantanu <[email protected]>466017dab694fd87b7ab2d89475259a7004f589e authored over 3 years ago by EXPLOSION <[email protected]>
551eea3697d0740838aa978b2a61e6f7e771c3e2 authored over 3 years ago by Philip Jägenstedt <[email protected]>
Closes mypyc/mypyc#832
3cbcad0771a244031787c57231acb2bff39c3974 authored over 3 years ago by 97littleleaf11 <[email protected]>
Also add test that will find things missing in headers, as long as they follow
our naming conve...
Source commit:
https://github.com/python/typeshed/commit/97101b1d2c8cc7836c18668dc6f92a804511e8...
Don't create `TypeAliasType` for aliases defined within functions,
since the target can't be lo...
The name of the nested tuple type was inconsistent. Sometimes if was stored
using the full name...
The `from_module_getattr` attribute of `Var` was not serialized, so
subsequent runs didn't know...
Add support for functools.cached_property decorator:
https://docs.python.org/3/library/functool...
Closes #5205.
This PR will add support to mypy for end users specifying configuration in
a ...
This commit adds tests for make_simplified_union, including the new functionality
added in #10...
We could narrow `Type[T]` to `<nothing>` when tested against a
metaclass, which is not useful. ...
Previously we could find stubs both in `stdlib/@python2` and
`stdlib` for the same top-level pa...
As per #9940, a [mypy] section is now required in setup.cfg in order for config to be loaded fro...
b484c6d341464d750467c9c318d855e5b6bfd398 authored over 3 years ago by James Cooke <[email protected]>95a267167dca6dd5072e4f4d02db4a4ba54f5488 authored over 3 years ago by Philip Jägenstedt <[email protected]>
The enum stubs for Python 2 are slightly different from Python 3.
The fix in #10412 didn't quit...
Class-based TypedDict syntax requires Python 3.6+.
b8c8833a8029492211b816d9261fcf2fb4e89ce6 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
Even if the plugin doesn't work yet, generating an error is a
regression. The decorator used to...
A union of enum literals was merged back to the enum type, which broke
type narrowing. Disable ...
If the enum value initializer has a NewType type, it should be
reflected in the type of the `va...
Previously this was inconsistent, and some TypedDict operations used
the 'misc' error code, whi...
Python 3.10 changes a bunch of parser error messages. This commit
introduces the version>= argu...
* Support max version marker of stdlib typeshed modules
* Support '2.7-' VERSIONS format
8bc1115a7469ac4702d29da87acf5831c696d007 authored over 3 years ago by Sebastian Rittau <[email protected]>194873d06491ea49233d87422dbc7b934ef4338a authored over 3 years ago by Adrian Freund <[email protected]>
When using `mypy_path` or `MYPYPATH`, allow storing Python 2 only stubs and
source files under ...
For example, consider this enum:
```
class E(Enum):
A = 1
B = 1
```
This PR ma...
322ef60ba7231bbd4f735b273e88e67afb57ad17 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
This fixes make_simplified_union if multiple instances of the same type but
with different las...
Source commit:
https://github.com/python/typeshed/commit/8bd3e16eef2737562be5351ea38f7d34d73acad5
Propagate the value of `__all__` from the imported module.
Fixes #10381.
e14cb14d6770095b0088b04df9432eb533ecc78c authored over 3 years ago by Jukka Lehtosalo <[email protected]>
Change the documentation style for the arguments to
find_type_equals_check to be closer to what...
Allocate a correctly sized list instead of appending to an initially empty list
in many list co...
Make it clearer that we didn't actually run the core stubtest logic
Co-authored-by: hauntsani...
66c2ac516305f194a9bc37c1ebf7f22d62d6141c authored over 3 years ago by Shantanu <[email protected]>0643b48757e1248d3676e933679434a82dc36a1b authored over 3 years ago by Sebastian Rittau <[email protected]>
At runtime, the callable properties of dataclasses are handled in the
way one would expect: the...
Not all possible variants are tested, but at least simple things work.
Fixes mypyc/mypyc#719.
8c82dac571e8ed730e6a551eea1aee69865b39a9 authored over 3 years ago by Jukka Lehtosalo <[email protected]>
Using obsolete Python 3.5 breaks typeshed's execution of mypy's self
check, as typeshed does no...
* NewType related errors and Cannot redefine
* TypeVar related
* namedTuple - First argume...
d326952f88214b36d302c7fcbc92320b3c68fa18 authored over 3 years ago by Dixith <[email protected]>Closes mypyc/mypyc#768.
bdcc5621d7a2f5124382662272d1be8476ec90fe authored over 3 years ago by 97littleleaf11 <[email protected]>Added a section to the incompatible_argument function in mypy.messages that is executed when try...
09bf2500bb6326c56a82b7559e1114d42bcec846 authored over 3 years ago by Akshay K <[email protected]>dd16ba3cd1306a6a209e6675804324411b004398 authored over 3 years ago by Dixith <[email protected]>