mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
fix: mypy errors since v0.991
This commit is contained in:
parent
bb183244a9
commit
2d29b04a4a
2 changed files with 5 additions and 1 deletions
|
@ -132,6 +132,10 @@ exclude = ((xonsh/ply)|(xontrib/(mpl.*py|distributed.py|jedi.py)))
|
|||
;match dmypy semantics - https://github.com/python/mypy/issues/8046
|
||||
local_partial_types = True
|
||||
|
||||
; since v0.991 implicit optional became True by default.
|
||||
no_implicit_optional=False
|
||||
|
||||
|
||||
# report
|
||||
show_error_context = True
|
||||
show_column_numbers = True
|
||||
|
|
|
@ -14,7 +14,7 @@ from xonsh.built_ins import XSH
|
|||
if tp.TYPE_CHECKING:
|
||||
from xonsh.built_ins import XonshSession
|
||||
|
||||
FieldType = tp.TypeVar("FieldType", bound="BasePromptField", covariant=True)
|
||||
FieldType = tp.TypeVar("FieldType", bound="BasePromptField")
|
||||
|
||||
|
||||
@xt.lazyobject
|
||||
|
|
Loading…
Add table
Reference in a new issue