chore: update mypy (#4718)

* chore: pin mypy to 0.940, stop installing from git

* chore: skip mypy check of windows unc check
This commit is contained in:
Gil Forsyth 2022-03-15 22:22:37 -04:00 committed by GitHub
parent f0d77b28e8
commit 32bddba3a3
Failed to generate hash of commit
2 changed files with 2 additions and 3 deletions

View file

@ -18,9 +18,7 @@ pre-commit
pyte>=0.8.0
# types related
# mypy==0.931
git+git://github.com/python/mypy.git@9b3147701f054bf8ef42bd96e33153b05976a5e1
# TODO: replace above with mypy==0.940 once its released
mypy==0.940
types-ujson
# ensure tests run with the amalgamated (==production) xonsh

View file

@ -20,6 +20,7 @@ _unc_tempDrives: tp.Dict[str, str] = {}
""" drive: sharePath for temp drive letters we create for UNC mapping"""
@tp.no_type_check
def _unc_check_enabled() -> bool:
r"""Check whether CMD.EXE is enforcing no-UNC-as-working-directory check.