mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 06:22:02 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
# Stubs for glob
|
||||
# Based on http://docs.python.org/3/library/glob.html
|
||||
|
||||
from typing import List, Iterator, AnyStr, Union
|
||||
import sys
|
||||
from typing import AnyStr, Iterator, List, Union
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
def glob0(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
|
||||
|
||||
else:
|
||||
def glob0(dirname: AnyStr, basename: AnyStr) -> List[AnyStr]: ...
|
||||
|
||||
def glob1(dirname: AnyStr, pattern: AnyStr) -> List[AnyStr]: ...
|
||||
|
||||
def glob(pathname: AnyStr, *, recursive: bool = ...) -> List[AnyStr]: ...
|
||||
def iglob(pathname: AnyStr, *, recursive: bool = ...) -> Iterator[AnyStr]: ...
|
||||
|
||||
def escape(pathname: AnyStr) -> AnyStr: ...
|
||||
|
||||
def has_magic(s: Union[str, bytes]) -> bool: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user