Clean up files with former forced consistency (#4717)

Replace Text with str in Python 3 code
This commit is contained in:
Sebastian Rittau
2020-10-27 07:52:35 +01:00
committed by GitHub
parent 25b3004ad8
commit 4603728a15
24 changed files with 364 additions and 636 deletions

View File

@@ -1,5 +1,5 @@
import sys
from typing import Any, Callable, Generic, List, Mapping, Optional, Sequence, Text, Tuple, Type, TypeVar, Union, overload
from typing import Any, Callable, Generic, List, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
_F = TypeVar("_F", bound=Callable[..., Any])
_T = TypeVar("_T")
@@ -252,7 +252,7 @@ class _patcher:
def object( # type: ignore
self,
target: Any,
attribute: Text,
attribute: str,
*,
spec: Optional[Any] = ...,
create: bool = ...,
@@ -265,7 +265,7 @@ class _patcher:
def object(
self,
target: Any,
attribute: Text,
attribute: str,
new: _T = ...,
spec: Optional[Any] = ...,
create: bool = ...,