[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d7e7c32a5f
commit
dd53cc7e38
|
@ -108,7 +108,6 @@ if os.environ.get("_ARGCOMPLETE"):
|
||||||
def try_argcomplete(parser: argparse.ArgumentParser) -> None:
|
def try_argcomplete(parser: argparse.ArgumentParser) -> None:
|
||||||
argcomplete.autocomplete(parser, always_complete_options=False)
|
argcomplete.autocomplete(parser, always_complete_options=False)
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def try_argcomplete(parser: argparse.ArgumentParser) -> None:
|
def try_argcomplete(parser: argparse.ArgumentParser) -> None:
|
||||||
|
|
|
@ -324,7 +324,6 @@ if sys.platform == "win32":
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def _write_pyc(
|
def _write_pyc(
|
||||||
|
|
|
@ -192,7 +192,6 @@ if sys.version_info < (3, 7):
|
||||||
def nullcontext():
|
def nullcontext():
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
from contextlib import nullcontext as nullcontext # noqa: F401
|
from contextlib import nullcontext as nullcontext # noqa: F401
|
||||||
|
|
||||||
|
|
|
@ -562,7 +562,6 @@ if sys.platform.startswith("win"):
|
||||||
def _is_same(f1: str, f2: str) -> bool:
|
def _is_same(f1: str, f2: str) -> bool:
|
||||||
return Path(f1) == Path(f2) or os.path.samefile(f1, f2)
|
return Path(f1) == Path(f2) or os.path.samefile(f1, f2)
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
def _is_same(f1: str, f2: str) -> bool:
|
def _is_same(f1: str, f2: str) -> bool:
|
||||||
|
|
Loading…
Reference in New Issue