diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-01-02 00:01:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 00:01:14 +0000 |
commit | 4032070e8131f518bbb8a04e8d63c5af4df9b59d (patch) | |
tree | 47b14f58d5337448e8358029264ebcd6d1ae7351 /tests/roots/test-ext-autodoc/target/overload.py | |
parent | ede68fa423107fbab74d07b307d7dcb03c00dfbd (diff) | |
download | sphinx-git-4032070e8131f518bbb8a04e8d63c5af4df9b59d.tar.gz |
Run pyupgrade (#11070)
Diffstat (limited to 'tests/roots/test-ext-autodoc/target/overload.py')
-rw-r--r-- | tests/roots/test-ext-autodoc/target/overload.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/roots/test-ext-autodoc/target/overload.py b/tests/roots/test-ext-autodoc/target/overload.py index 902f00915..4bcb6ea3c 100644 --- a/tests/roots/test-ext-autodoc/target/overload.py +++ b/tests/roots/test-ext-autodoc/target/overload.py @@ -9,7 +9,7 @@ def sum(x: int, y: int = 0) -> int: @overload -def sum(x: "float", y: "float" = 0.0) -> "float": +def sum(x: float, y: float = 0.0) -> float: ... @@ -31,7 +31,7 @@ class Math: ... @overload - def sum(self, x: "float", y: "float" = 0.0) -> "float": + def sum(self, x: float, y: float = 0.0) -> float: ... @overload @@ -47,11 +47,11 @@ class Foo: """docstring""" @overload - def __new__(cls, x: int, y: int) -> "Foo": + def __new__(cls, x: int, y: int) -> Foo: ... @overload - def __new__(cls, x: "str", y: "str") -> "Foo": + def __new__(cls, x: str, y: str) -> Foo: ... def __new__(cls, x, y): @@ -66,7 +66,7 @@ class Bar: ... @overload - def __init__(cls, x: "str", y: "str") -> "None": + def __init__(cls, x: str, y: str) -> None: ... def __init__(cls, x, y): @@ -79,7 +79,7 @@ class Meta(type): ... @overload - def __call__(cls, x: "str", y: "str") -> "Any": + def __call__(cls, x: str, y: str) -> Any: ... def __call__(cls, x, y): |