Content-Length: 323056 | pFad | http://github.com/python/typeshed/pull/14289/commits/7b9288653cb6105e2a355fcdfc7efbe2e4eeb2b2

57 Add 3.14 Deprecations by max-muoto · Pull Request #14289 · python/typeshed · GitHub
Skip to content

Add 3.14 Deprecations #14289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
87447ec
Add 3.14 deprecations
max-muoto Jun 16, 2025
2e34041
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 16, 2025
c52f786
Fix
max-muoto Jun 16, 2025
7b92886
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 16, 2025
5c5315a
Fixes
max-muoto Jun 16, 2025
74badea
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 16, 2025
0f14bad
Revert
max-muoto Jun 16, 2025
da6d451
Fix
max-muoto Jun 16, 2025
6661c35
Revert
max-muoto Jun 17, 2025
1e2e617
Fix
max-muoto Jun 17, 2025
ed65903
Fix
max-muoto Jun 17, 2025
2bffae4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 17, 2025
647bb88
Address comments
max-muoto Jun 18, 2025
d40fc6c
Fix
max-muoto Jun 18, 2025
83efd5d
revert
max-muoto Jun 18, 2025
90c97d4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 18, 2025
7eccbac
Add override
max-muoto Jun 18, 2025
4f5c981
Fix tests
max-muoto Jun 18, 2025
28a1743
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 18, 2025
3de835b
Tweaks
max-muoto Jun 18, 2025
8c44563
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 18, 2025
94c49d6
3.13
max-muoto Jun 18, 2025
7d0fb15
Merge branch 'main' into add-3.14-deprecations
srittau Jul 7, 2025
8f97cb9
Merge branch 'main' of https://github.com/max-muoto/typeshed into add…
max-muoto Jul 12, 2025
5c89ea7
Tweak
max-muoto Jul 12, 2025
3034a9d
Add ignore
max-muoto Jul 12, 2025
4fbdb04
Tweak tests
max-muoto Jul 12, 2025
3e6d012
Fix
max-muoto Jul 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
  • Loading branch information
pre-commit-ci[bot] committed Jun 16, 2025
commit 7b9288653cb6105e2a355fcdfc7efbe2e4eeb2b2
23 changes: 6 additions & 17 deletions stdlib/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -419,32 +419,20 @@ class complex:
if sys.version_info >= (3, 14):
@overload
def __new__(
cls,
real: SupportsComplex | SupportsFloat | SupportsIndex = ...,
imag: SupportsFloat | SupportsIndex = ...,
cls, real: SupportsComplex | SupportsFloat | SupportsIndex = ..., imag: SupportsFloat | SupportsIndex = ...
) -> Self: ...
@overload
def __new__(cls, real: str | SupportsComplex | SupportsFloat | SupportsIndex) -> Self: ...
@overload
@deprecated(
"Passing a complex number as the 'real' or 'imag' argument is deprecated. "
"Use the single-argument form instead."
"Passing a complex number as the 'real' or 'imag' argument is deprecated. " "Use the single-argument form instead."
)
def __new__(
cls,
real: complex,
imag: complex | SupportsFloat | SupportsIndex = ...,
) -> Self: ...
def __new__(cls, real: complex, imag: complex | SupportsFloat | SupportsIndex = ...) -> Self: ...
@overload
@deprecated(
"Passing a complex number as the 'real' or 'imag' argument is deprecated. "
"Use the single-argument form instead."
"Passing a complex number as the 'real' or 'imag' argument is deprecated. " "Use the single-argument form instead."
)
def __new__(
cls,
real: SupportsComplex | SupportsFloat | SupportsIndex | complex,
imag: complex,
) -> Self: ...
def __new__(cls, real: SupportsComplex | SupportsFloat | SupportsIndex | complex, imag: complex) -> Self: ...
else:
@overload
def __new__(
Expand All @@ -454,6 +442,7 @@ class complex:
) -> Self: ...
@overload
def __new__(cls, real: str | SupportsComplex | SupportsFloat | SupportsIndex | complex) -> Self: ...

@property
def real(self) -> float: ...
@property
Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/typeshed/pull/14289/commits/7b9288653cb6105e2a355fcdfc7efbe2e4eeb2b2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy