fix: mypy errors since v0.991

This commit is contained in:
Noorhteen Raja NJ 2022-12-20 10:12:12 +05:30
parent bb183244a9
commit 2d29b04a4a
2 changed files with 5 additions and 1 deletions

View file

@ -132,6 +132,10 @@ exclude = ((xonsh/ply)|(xontrib/(mpl.*py|distributed.py|jedi.py)))
;match dmypy semantics - https://github.com/python/mypy/issues/8046 ;match dmypy semantics - https://github.com/python/mypy/issues/8046
local_partial_types = True local_partial_types = True
; since v0.991 implicit optional became True by default.
no_implicit_optional=False
# report # report
show_error_context = True show_error_context = True
show_column_numbers = True show_column_numbers = True

View file

@ -14,7 +14,7 @@ from xonsh.built_ins import XSH
if tp.TYPE_CHECKING: if tp.TYPE_CHECKING:
from xonsh.built_ins import XonshSession from xonsh.built_ins import XonshSession
FieldType = tp.TypeVar("FieldType", bound="BasePromptField", covariant=True) FieldType = tp.TypeVar("FieldType", bound="BasePromptField")
@xt.lazyobject @xt.lazyobject