Jelle Zijlstra
a2371460d1
prepare release 4.0.1 ( #974 )
2021-11-30 17:42:06 -08:00
Chris Wesseling
0c8e55f163
Vendor typing._SpecialForm to fool typing._type_check ( #966 )
...
Adds a local copy of _SpecialForm in our namespace, so
typing._type_check won't raise TypeError. (#964 )
Co-authored-by: James Hilton-Balfe <50501825+Gobot1234@users.noreply.github.com>
2021-11-28 19:10:51 -08:00
Jelle Zijlstra
273fe266ab
prepare changelog ( #969 )
2021-11-28 16:58:27 +01:00
Numerlor
345e89226e
Link to English version of Pycharm's landing site ( #967 )
...
The previous link sent the user to the German version of the site
2021-11-27 07:42:08 -08:00
Adam Turner
caa9cdf5d0
Rename src_py3 to src ( #965 )
2021-11-25 15:29:03 -08:00
Jelle Zijlstra
28b64f4fea
Required/NotRequired: fix typo ( #962 )
2021-11-24 14:07:06 -08:00
Sebastian Rittau
fefa5350c2
Link fixes ( #952 )
2021-11-19 05:16:21 -08:00
Jelle Zijlstra
93a51a6442
Update typing-extensions README ( #951 )
...
- Add an explicit inclusion policy: new stuff can go in here as soon as there is a PEP
- Remove obsolete discussion of the typing PyPI package
- Organize the list of contents by Python version, so it's easier to find the interesting bits. Maybe we should deprecate the stuff that was new in 3.5/3.6 at some point.
2021-11-19 05:15:23 -08:00
Jelle Zijlstra
37aa31fc15
Documentation: Add links to typing PEPs ( #949 )
2021-11-19 09:46:35 +01:00
jack1142
97d466ff74
Add `Self` type to the README of typing-extensions ( #942 )
2021-11-14 15:12:39 -08:00
Jelle Zijlstra
b53cb9a0a8
prepare release 4.0.0 ( #941 )
2021-11-14 16:22:59 +01:00
Sebastian Rittau
1d1270e48a
Create issue templates ( #921 )
2021-11-14 15:23:03 +01:00
Jelle Zijlstra
5c98e79c67
Add PEP 655 Required and NotRequired to typing_extensions ( #937 )
...
Co-authored-by: David Foster <david@dafoster.net>
2021-11-14 15:22:30 +01:00
Bibo-Joshi
1118e9ddd1
Make library guidelines checker agnostic ( #934 )
2021-11-11 19:34:15 -08:00
James Hilton-Balfe
60aa1e20c0
Add PEP 673 Self type ( #933 )
2021-11-11 18:23:29 -08:00
Sebastian Rittau
8fd49b5fb2
Use unittest for testing instead of pytest ( #935 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2021-11-11 12:56:51 -08:00
Adam Turner
6992984178
Clean-up `typing_extensions` -- `typing_extensions` ( #932 )
...
* Remove compatibility constants for old Python versions.
* Remove obsolete code branches.
* Use f-strings.
* Use new style super().
* Inline typing imports.
2021-11-11 16:20:37 +01:00
Adam Turner
d2981209e3
typing_extensions: Drop Python 2.7, modernize build ( #931 )
...
* Drop Python 2.7 support -- tests, linting
* Adopt pyproject.toml and a build backend (flit)
* Add Python 3.7+ types to README.rst
2021-11-11 11:17:23 +01:00
Sebastian Rittau
7d797bad1f
Use Semantic Versioning for typing_extensions ( #907 )
...
Bump version to 4.0.0-pre
2021-11-04 19:09:47 +01:00
Shannon Zhu
6eebf9f5f2
Fix link in README ( #918 )
2021-11-02 13:57:31 -07:00
Shannon Zhu
1fe5d43886
Move individual pages from toplevel docs ( #916 )
2021-11-02 21:48:02 +01:00
Sebastian Rittau
e3bbd5e749
Upgrade Sphinx ( #917 )
2021-11-02 21:47:10 +01:00
Sebastian Rittau
85ce96b18a
Convert libraries document to ReST ( #904 )
...
Link the document and rename it slightly
2021-10-07 15:11:00 -07:00
Sebastian Rittau
796a0b699a
Check with stable Python 3.10 ( #902 )
2021-10-05 07:33:59 -07:00
Sebastian Rittau
5cc1d2c840
Drop Python 2 support for typing_extensions ( #893 )
...
Update README accordingly
2021-09-16 06:52:34 -07:00
Sebastian Rittau
17fe6c4321
Remove typing backport ( #882 )
...
Closes : #877
2021-09-15 17:40:20 +02:00
Sebastian Rittau
0a9ee8f924
typing_extensions: Drop support for Python 3.4 & 3.5 ( #881 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-09-15 17:00:20 +02:00
Sebastian Rittau
1d8fb26709
Add "Typing Guidance for Python Libraries" document ( #889 )
...
By Eric Traut, source: https://raw.githubusercontent.com/microsoft/pyright/main/docs/typed-libraries.md
See https://github.com/srittau/type-stub-pep/issues/94 for background.
This is a pristine copy of the original document. It needs to be
converted into RestructuredText and linked from the index as a next
step.
2021-09-13 19:41:05 -07:00
Sebastian Rittau
409715f17b
Git ignore .venv* and venv* directories ( #888 )
...
Also sort entries and remove the now redundant docs/venv/ entry.
2021-09-09 12:20:11 -07:00
Sebastian Rittau
9f0f1b623e
Fix and clean up CI script ( #876 )
...
* Split Python 2.7 tests from Python 3 tests as they use different paths
and require installation of the typing module.
* Split running typing and typing_extensions tests into two steps.
* Don't test typing on Python 3
* Remove pytest-xdist and pytest-cov not necessary here
2021-08-31 07:24:38 -07:00
Sondre Lillebø Gundersen
829eb41520
Add caching to the GHA workflow ( #880 )
2021-08-31 11:08:48 +02:00
Sebastian Rittau
f530b8cde4
Remove two obsolete scripts ( #879 )
2021-08-30 16:16:50 -07:00
Sebastian Rittau
a4757c645a
Remove the drafts directory ( #878 )
...
This contained historic notes for PEP 484.
2021-08-30 16:16:28 -07:00
Sebastian Rittau
68e7cb7c90
Fix linting ( #875 )
...
* Split linting into two steps
* Fix an overly long line
* Run linter with Python 3.9
* Ignore more errors in test linting
2021-08-31 00:06:04 +02:00
davfsa
6a6f807a96
Switch pipeline to Github Actions ( #866 )
2021-08-30 22:51:45 +02:00
Ken Jin
f3d3d054c8
don't use custom _ConcatenenateGenericAlias for 3.10 ( #870 )
2021-08-30 11:49:43 -07:00
Jelle Zijlstra
7552efe8b5
prepare release 3.10.0.2 ( #873 )
2021-08-30 11:42:55 -07:00
Ken Jin
58de2e9c5b
Fix tests for 3.10rc1 and up ( #872 )
2021-08-30 10:56:40 -07:00
Jelle Zijlstra
af13555328
fix _GenericAlias import ( #871 )
2021-08-30 09:19:56 -07:00
Nikita Sobolev
c1cbcace01
Fixes crash on Python3.10-beta.2 and typing_extensions@3.10.0.1 ( #869 )
2021-08-30 08:56:36 -07:00
Sebastian Rittau
ec052c368f
Fix linter warnings ( #868 )
2021-08-30 07:19:33 -07:00
Sebastian Rittau
3ed2adbe3c
Update supported features ( #855 )
...
* Union shorthand is now mostly supported
* Explicitly mention type guards as being supported
* ParamSpec is partly supported
* Describe cases where built-in generics are not supported
* Reference typeshed issues for unsupported features
Restructure unsupported features section
2021-08-29 08:58:26 -07:00
Jelle Zijlstra
7d2fae84d7
prepare release 3.10.0.1 ( #863 )
2021-08-29 08:52:30 -07:00
Sebastian Rittau
01b0368690
Linkfixes ( #857 )
2021-08-25 07:12:19 -07:00
Sebastian Rittau
7d47c9fb37
Rework README ( #853 )
...
* Rename to "Static Typing for Python".
* Add "Documentation and Support" section.
* Update what the repository is used for.
2021-08-25 06:51:17 -07:00
Sebastian Rittau
651cb585f1
Rename the documentation ( #854 )
...
Use correct heading level
2021-08-24 14:44:46 -07:00
Sebastian Rittau
c7c30c894e
Link to discussion forums ( #852 )
2021-08-23 23:40:48 -07:00
Sebastian Rittau
ce2ea207b0
Various improvements to the Type Stubs document ( #846 )
...
* Rename "Abstract" to "Introduction" and remove fluff originally intended
for the PEP.
* "This PEP" -> "This document"
* Remove note about the living document status. This is a given, not that
it isn't a PEP anymore.
* Third-party stubs are now distributed via PyPI.
* Mention "# type: ignore[xxx]".
* Fix indentation.
* Reformulate sentence about cyclic imports.
* Use type vars correctly in example.
* Use new union syntax.
* Remove "we" from sentence and slightly reformulate.
* Clarify that "# incomplete" is mainly intended for stub authors.
* Mention "X | Any" return type. Still needs to be explained.
2021-08-24 08:08:17 +02:00
Sebastian Rittau
f5bc93aea3
Link to the typing module docs ( #849 )
2021-08-23 20:47:32 -07:00
Sebastian Rittau
b4ea885106
Build the docs when a PR is created ( #848 )
...
This only triggers on pr, not on pushes, since there will be a separate workflow for pushed that builds and uploads the documentation.
2021-08-23 14:29:44 -07:00