You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the document says its type is Optional[Dict[str, Union[str, int, bool, float]]]={} which I think means the following YAML format (dict syntax) is accepted.
to change the documentation to say the type of mypy_config is str, or
to change the implementation to accept the YAML dict.
because the files field, which is documented to accept Optional[List[File]]=[] type, can be specified with the YAML list syntax like
- path: myapp/__init__.py
, which is inconsistent and confusing.
The same problem is there on the env field.
Its type is documented as Optional[Dict[str, str]]={}, but the YAML syntax for the field is list as follows:
The
mypy_config
field accepts a string as below.So, if we want to provide multi fields, it would be like below, where the value of
mypy_config
in the YAML format is of typestr
.However, the document says its type is
Optional[Dict[str, Union[str, int, bool, float]]]={}
which I think means the following YAML format (dict syntax) is accepted.but actually it is not.
My suggestion is either
mypy_config
isstr
, orbecause the
files
field, which is documented to acceptOptional[List[File]]=[]
type, can be specified with the YAML list syntax like, which is inconsistent and confusing.
The same problem is there on the
env
field.Its type is documented as
Optional[Dict[str, str]]={}
, but the YAML syntax for the field is list as follows:The text was updated successfully, but these errors were encountered: