Merge pull request #7846 from asottile/py36_black

py36+: update the target version of black to py36
This commit is contained in:
Anthony Sottile
2020-10-03 11:45:45 -07:00
committed by GitHub
16 changed files with 28 additions and 28 deletions

View File

@@ -89,7 +89,7 @@ class ParameterSet(
cls,
*values: object,
marks: Union["MarkDecorator", Collection[Union["MarkDecorator", "Mark"]]] = (),
id: Optional[str] = None
id: Optional[str] = None,
) -> "ParameterSet":
if isinstance(marks, MarkDecorator):
marks = (marks,)
@@ -138,7 +138,7 @@ class ParameterSet(
argnames: Union[str, List[str], Tuple[str, ...]],
argvalues: Iterable[Union["ParameterSet", Sequence[object], object]],
*args,
**kwargs
**kwargs,
) -> Tuple[Union[List[str], Tuple[str, ...]], bool]:
if not isinstance(argnames, (tuple, list)):
argnames = [x.strip() for x in argnames.split(",") if x.strip()]
@@ -398,7 +398,7 @@ if TYPE_CHECKING:
self,
condition: Union[str, bool] = ...,
*conditions: Union[str, bool],
reason: str = ...
reason: str = ...,
) -> MarkDecorator:
...
@@ -415,7 +415,7 @@ if TYPE_CHECKING:
reason: str = ...,
run: bool = ...,
raises: Union[Type[BaseException], Tuple[Type[BaseException], ...]] = ...,
strict: bool = ...
strict: bool = ...,
) -> MarkDecorator:
...
@@ -432,7 +432,7 @@ if TYPE_CHECKING:
Callable[[Any], Optional[object]],
]
] = ...,
scope: Optional[_Scope] = ...
scope: Optional[_Scope] = ...,
) -> MarkDecorator:
...