Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/python/typing
Python static typing home. Hosts the documentation and a user help forum.
https://github.com/python/typing
f5bc93aea3a6e13bcd860e2998d1c08299819a94 authored over 3 years ago
This only triggers on pr, not on pushes, since there will be a separate workflow for pushed that...
b4ea885106d49b29d666975e0fa0957e5bcd9317 authored over 3 years ago
* Enable the intersphinx extension for linking to Python
documentation.
* Use inline links i...
* Ignore venv and README when building docs
This suppresses warnings during the docs build if...
82b3940a59d173b210b4d525d0921b25f43669b6 authored over 3 years agoThis was originally intended to become a PEP and was written by:
Sebastian Rittau <sebastian....
d7f07b71538db86e849c3391c26940adeb912d77 authored over 3 years agoThis directory is automatically created by "make -C docs venv".
421e0a4672b75db6a2e91e2f85bf207808b5f138 authored over 3 years agof36dc8dbf19eb931d759f58f939fbb7f6d0ed764 authored over 3 years ago
0fc0eda1e6b415811d4f94f1af0c90543db48485 authored over 3 years ago
a1143792004b6e2e5482f76f419989d9c63a0aea authored over 3 years ago
Run Sphinx initialize to set up structure for Python typing documentation.
See typing-sig dis...
2de0a9324080da3ce9b1445b3729248a6f1cee53 authored over 3 years ago* BUG: Added a missing comma in `__all__`
* TST: Add a test to ensure that all objects in `__...
c4191ac15aa54c8269ccf2e6292b4a9cc928359e authored almost 4 years agofcc7df6f12d50bc5cd40835549944ebe357095ab authored almost 4 years ago
edd78b2253abffc5cc82c32a43c22845fb7c465f authored almost 4 years ago
This should be the last missing piece for a 3.10-compatible release.
The implementation was m...
c33fe16001e11ba01bd39edb1ba49b99233f5410 authored almost 4 years ago
From python/cpython#25298. I also added more tests for get_args/get_origin,
which previously di...
Co-authored-by: Alex Grönholm <[email protected]>
40932e3975a1be61d5904f6f790b4631cbaeb74b authored almost 4 years ago6a2a490d60be18ed36894c1eaf23102e671a3df9 authored almost 4 years ago
c23141fd08aba8284ce76b096bf08fd7c019b51c authored almost 4 years ago
dacb6b0dc6caa15146e47eba29f9d6772ead3580 authored almost 4 years ago
(The solution for 3.7.0 and 3.7.1 is a little funky, but those releases are dead anyways.)
ea7f88e8d2dd28a5569b2385c21b17063c480c7f authored almost 4 years agoc487c47523581defc77036ab0651baf704638eae authored almost 4 years ago
This was previously not included in the readme although implemented
b364d780a830cbfbf6febb989d53b97bb7b7404e authored almost 4 years agoc7a981aaab7b20b93c911f1e5dd0ab2a8e30fd6c authored about 4 years ago
Applies the fix from https://bugs.python.org/issue40398 to typing_extensions: typing.get_args() ...
b5c0b6d66b3adba4dde3f4f4145ce83a70fd03f7 authored about 4 years ago27147f87d77e7a1516842e0b4ed16eb6f08c1d5b authored about 4 years ago
95d6776c0d07e7b096ca153ed6c5b1b30db738e1 authored over 4 years ago
5d2f3b1992b8b66d41fe001df148693b45d30e31 authored over 4 years ago
99804935aedc07772090450f9359d61d57b6308f authored over 4 years ago
ec6b0b64ad8eb5da8b2b74243acf2187463fdd5b authored over 4 years ago
This should address issues due to projects including 'typing' in their
requirements.txt file wit...
c85016137eab6d0784b76252460235638087f468 authored over 4 years ago
0b0e24801f8ec5322ee84d27024cae1805449396 authored over 4 years ago
It supports running its tests for all supported Python versions:
2.7 and 3.4-3.9, which are dif...
6d287f054b4f535a8b0ff1c249a28795894690d0 authored over 4 years ago
Python 3.9+ has its own version of Annotated. Make the tests take it
into account similarly to ...
We no longer support it.
d7d8b3d4ab7dac4f0ba6a379978b98ebd6f1a4d7 authored over 4 years ago08a537d484edddb563288982f8073d241fec5535 authored over 4 years ago
5848903b02dcc4f5a1efea3337109849fb41bee0 authored over 4 years ago
* Add python_requires to help pip
* Link project to source repo
666013320879c03d79c5b1838b71e978398176eb authored almost 5 years agod79eddef37cb09ca9a3d763364c4feb7b8473402 authored almost 5 years ago
Ideally if we stick a ForwardRef in a dictionary we would like to reliably be able to get it out...
15e5396d2e210326bbbe98384fb330d51e08ae21 authored almost 5 years ago(For a complete description of the issue see https://github.com/python/typing/pull/700.)
e796957d1b6a50633dff1eb50ffdc22f0f2e2c35 authored almost 5 years agofdc9359289dd0a30ca90ad9d476ecd69a93b1973 authored almost 5 years ago
Following [1] this prevents multiple runtime implementations of Annotated
and get_type_hints fr...
6d84d283be03619ca7cb8bdd251f761036c9ebf1 authored about 5 years ago
The implementations come from CPython commit 427c84f13f77 with one small
change – the get_origi...
- Explain why installing this package has no effect on Python >= 3.5
- Guide package maintainer...
Backport of python/cpython#17214 (BPO-38834)
2b4749c4d9c79dd2439a1cbdd00230ef9d9b56e3 authored about 5 years agoFixes https://github.com/python/typing/issues/677
This backports https://github.com/python/cp...
dd0099555c232e1475ba20c656f1fbfe20aec9d2 authored about 5 years agoc943372c3c01f9fa62f8d80fd4f50c7603ef1ce4 authored over 5 years ago
53e7d273a4d4ca0e076d574279aa53431fe69407 authored over 5 years ago
7c00cacae00c4f3263e939e88b5e7739150851e5 authored over 5 years ago
Fixes https://github.com/python/typing/issues/656
The problem is if a generic class inherits ...
a522554e2551b2d1ad46d287b428b2e3856d4c70 authored over 5 years ago00522c49c4cefb013783424db4db728f305ec84b authored over 5 years ago
`test_typing_compiles_with_opt()` is prone to failure if building and testing with an interprete...
6f7daad72f2cda7cef8580b14bddcc6459a2cc8c authored over 5 years agoFixes #660
f254d69c56920819b4211f47fdaba6472097dc5c authored over 5 years agoFixes https://github.com/python/typing/issues/488 (again).
The fix is a hack, but on the othe...
f4e7b23c86614052f206ff4c7013408d12d29cca authored over 5 years ago27f2e427b9b677401961b5da1762f8380a929bb8 authored over 5 years ago
baf63c5924a2b9695175df5d47ced40596024b78 authored over 5 years ago
This was recently fixed in CPython repo (while adding `Protocol` there). This PR backports the f...
f63829cfdee4efb3cd5747cf99dc59af0549d9e1 authored over 5 years agoFixes https://github.com/python/typing/issues/648
This essentially just moves a bunch of code...
537a1042fab9deaf3261d9976a215a8cdbe84ebf authored over 5 years agoFixes https://github.com/python/typing/issues/643
(Use ignore whitespace option to review thi...
20d1f1b99fe56da3c631031d379a4beabd7914d0 authored over 5 years ago3e2de0866133c3b9db18fdcfd206da2469d0cee7 authored over 5 years ago
The Python 2 version is very close to the Python 3.6 code.
389666f60d2760bf925fb2fe172e8db1bc46055b authored over 5 years agoThis covers python 3.53 and above. I added a fair amount of tests.
859f57ffbeff90a2d4b26b7fd15c49a757aed58f authored over 5 years agoe58d2bfb9a12263167d5e726d5a8f8f8db8324ff authored over 5 years ago
cbca0d1c96e5ffa5614bb56b3f725f2a80d52c4d authored over 5 years ago
First commits for PEP 593
3a50379ae1645c4597cba4c671504de0abd2be03 authored over 5 years agoThis PR adds a runtime SupportsIndex protocol that can be used to check at runtime if something ...
7a16042108d90d8a53bf8619bf0e9dd13b97a842 authored over 5 years agoThis is almost a verbatim copy of the code in `mypy_extensions` plus few small tweaks due to dif...
6e6e4dd6c0b33087a39891ceb142c269f05e2be9 authored almost 6 years agoAlso bumped pytest dependency to 4.4.1.
ccf20262355e310578db8a1ee82dcdbd5ab2e42e authored almost 6 years agod687819798069a6e6a61e605d91634da66bc8d21 authored almost 6 years ago
Not whatever "python" might be.
1f49677868a60ed697b0eafb2fb56471233b4ea5 authored almost 6 years agoSince we are going to check the attribute, let's just check for its existence.
Fixes #612
4e42809238d60ec9cb32be42e2e05bf92662a960 authored about 6 years ago1be6269634bec97d58d68cc1243359118373580a authored about 6 years ago
* Add Literal[...] types to typing_extensions
This diff adds a preliminary draft of literal t...
e538a6ad4666fff7af89d04e95e83a7ecc6507e6 authored about 6 years agoFixes #579 .
When performing an `issubclass` check of a type against a protocol, the `__annot...
9443f261f5b03c2f0535cdd9c1e7a14c0fdb5952 authored over 6 years ago33e41435fd41398da3d54f547c7dffdc08a1b7c1 authored over 6 years ago
by providing a better URL
09ed108dea64e6ad18f816aa3b19fbce6acecea0 authored over 6 years agoThis is a runtime counterpart of an experimental feature added to mypy in https://github.com/pyt...
c6c7dfdd4b999a2bbd46d120adeacc504d74e044 authored over 6 years agod6631e8ea56063897e341207477e0cc3231f20b2 authored over 6 years ago
140a75afa71189d10973718016efc4e0e5319f12 authored over 6 years ago
The `closed` attribute in file objects is actually a property rather
than a method. Fix this i...
ff2084eb9ab5eea778d744c706e6a6aad05ea4bd authored almost 7 years ago
67cf5fd471268954ddc4ab2673c520c7cffb5e6c authored almost 7 years ago
8e32dc32f3d93ac452e80a153a2e8df9595113a8 authored almost 7 years ago
This fixes the lack of type information in the inspect.signature
of classes inhering from typin...
The main fix is rewriting Protocol class and its metaclass.
dbac8c244de7f6518d7507c57a67d92d75f8826c authored almost 7 years ago
Check whether Protocol.__doc__ exists before modifying it.
Fixes the crash in typing_extensions...
In cases with multiple inheritance, Generic's super may not be object, and so its __new__ requir...
7d7ffcd51e1ed9bccfa0466b371e490b1555208b authored about 7 years agoae9f5edd9575f7f94e45c6e9b64898db73a8b62a authored about 7 years ago
Fixes #506 with a caveat that X[int] creates a new class object
that is a subclass of X, so tha...
Fixes #488
The fix is as proposed in #488, i.e. by tweaking the existing
sys._getframe hack ...
Fixes #501
The idea is straightforward: special classes in typing_extensions
that have __ext...
This library is a Python 2 backport of functools.singledispatch, so it
should be treated the sa...
Fixes #498 (on both Python 2 and 3)
cca58eeb2d257e200bee37baeae80c29a49f0106 authored about 7 years ago98db8a423486f471d0520392b445875d59a8d84b authored over 7 years ago
a79c98c64855e9659b60efc6f39e11d8624ffdb6 authored over 7 years ago
This fixes a typo, updates required `typing` version to the latest one,
updates the contact e-m...