mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Use --no-implicit-optional by default

Open hauntsaninja opened this issue 2 years ago • 9 comments

Fixes #9091

This brings us in line with the PEP 484 updates in 2018

hauntsaninja avatar Aug 13 '22 00:08 hauntsaninja

Diff from mypy_primer, showing the effect of this PR on open source code:

SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/utils.py:57: error: Argument 2 of "update_roles_atomically" is incompatible with supertype "MixinMeta"; supertype defines the argument type as "Optional[List[Any]]"
+ rolemanagement/utils.py:57: note: This violates the Liskov substitution principle
+ rolemanagement/utils.py:57: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ rolemanagement/utils.py:57: error: Argument 3 of "update_roles_atomically" is incompatible with supertype "MixinMeta"; supertype defines the argument type as "Optional[List[Any]]"
+ rolemanagement/utils.py:61: error: Incompatible default for argument "give" (default has type "None", argument has type "List[Any]")
+ rolemanagement/utils.py:62: error: Incompatible default for argument "remove" (default has type "None", argument has type "List[Any]")
+ antimentionspam/antimentionspam.py:136: error: Incompatible default for argument "enabled" (default has type "None", argument has type "bool")
+ antimentionspam/antimentionspam.py:141: error: Statement is unreachable
+ antimentionspam/antimentionspam.py:161: error: Incompatible default for argument "enabled" (default has type "None", argument has type "bool")
+ antimentionspam/antimentionspam.py:168: error: Statement is unreachable
+ antimentionspam/antimentionspam.py:174: error: Incompatible default for argument "enabled" (default has type "None", argument has type "bool")
+ antimentionspam/antimentionspam.py:180: error: Statement is unreachable
+ rss/core.py:664: error: Incompatible default for argument "template" (default has type "None", argument has type "str")
+ relays/relays.py:329: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ relays/relays.py:337: error: Statement is unreachable
+ relays/relays.py:347: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ relays/relays.py:355: error: Statement is unreachable
+ channelredirect/redirect.py:158: error: Incompatible default for argument "command" (default has type "None", argument has type "CommandConverter")

pandera (https://github.com/pandera-dev/pandera)
+ pandera/error_handlers.py:24: error: Incompatible default for argument "original_exc" (default has type "None", argument has type "BaseException")  [assignment]
+ pandera/engines/engine.py:129: error: Incompatible default for argument "pandera_dtype_cls" (default has type "None", argument has type "Type[_DataType]")  [assignment]
+ pandera/strategies.py:272: error: Incompatible default for argument "allow_infinity" (default has type "None", argument has type "bool")  [assignment]
+ pandera/strategies.py:273: error: Incompatible default for argument "allow_nan" (default has type "None", argument has type "bool")  [assignment]
+ pandera/checks.py:114: error: Incompatible default for argument "name" (default has type "None", argument has type "str")  [assignment]
+ pandera/checks.py:985: error: Incompatible default for argument "min_value" (default has type "None", argument has type "int")  [assignment]
+ pandera/checks.py:985: error: Incompatible default for argument "max_value" (default has type "None", argument has type "int")  [assignment]
+ pandera/hypotheses.py:47: error: Incompatible default for argument "test_kwargs" (default has type "None", argument has type "Dict[Any, Any]")  [assignment]
+ pandera/hypotheses.py:48: error: Incompatible default for argument "relationship_kwargs" (default has type "None", argument has type "Dict[Any, Any]")  [assignment]
+ pandera/hypotheses.py:162: error: Argument "name" to "__init__" of "_CheckBase" has incompatible type "Optional[str]"; expected "str"  [arg-type]
+ pandera/schemas.py:1327: error: Incompatible default for argument "fp" (default has type "None", argument has type "Union[str, Path]")  [assignment]
+ pandera/schemas.py:1502: error: Incompatible default for argument "level" (default has type "None", argument has type "List[str]")  [assignment]
+ pandera/schemas.py:2145: error: Incompatible default for argument "name" (default has type "None", argument has type "str")  [assignment]
+ pandera/schema_components.py:393: error: Incompatible default for argument "size" (default has type "None", argument has type "int")  [assignment]
+ pandera/schema_components.py:418: error: Incompatible default for argument "size" (default has type "None", argument has type "int")  [assignment]
+ pandera/model_components.py:126: error: Incompatible default for argument "checks" (default has type "None", argument has type "Union[Check, List[Check]]")  [assignment]
+ pandera/model_components.py:137: error: Incompatible default for argument "checks" (default has type "None", argument has type "Union[Check, List[Check]]")  [assignment]
+ pandera/model_components.py:139: error: Incompatible default for argument "name" (default has type "None", argument has type "str")  [assignment]
+ pandera/model_components.py:159: error: Incompatible default for argument "checks" (default has type "None", argument has type "Union[Check, List[Check]]")  [assignment]
+ pandera/model_components.py:160: error: Incompatible default for argument "name" (default has type "None", argument has type "str")  [assignment]
+ pandera/model_components.py:184: error: Incompatible default for argument "in_range" (default has type "None", argument has type "Dict[str, Any]")  [assignment]
+ pandera/model_components.py:185: error: Incompatible default for argument "isin" (default has type "None", argument has type "Iterable[Any]")  [assignment]
+ pandera/model_components.py:186: error: Incompatible default for argument "notin" (default has type "None", argument has type "Iterable[Any]")  [assignment]
+ pandera/model_components.py:198: error: Incompatible default for argument "n_failure_cases" (default has type "None", argument has type "int")  [assignment]
+ pandera/decorators.py:366: error: Incompatible default for argument "head" (default has type "None", argument has type "int")  [assignment]
+ pandera/decorators.py:367: error: Incompatible default for argument "tail" (default has type "None", argument has type "int")  [assignment]
+ pandera/decorators.py:368: error: Incompatible default for argument "sample" (default has type "None", argument has type "int")  [assignment]
+ pandera/decorators.py:369: error: Incompatible default for argument "random_state" (default has type "None", argument has type "int")  [assignment]
+ pandera/decorators.py:376: error: Incompatible default for argument "out" (default has type "None", argument has type "Union[Union[DataFrameSchema, SeriesSchema], Tuple[Union[str, int, Callable[..., Any]], Union[DataFrameSchema, SeriesSchema]], List[Tuple[Union[str, int, Callable[..., Any]], Union[DataFrameSchema, SeriesSchema]]]]")  [assignment]

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/tests/utils/mock.py:13: error: Incompatible default for argument "headers" (default has type "None", argument has type "Dict[str, Any]")
+ rotkehlchen/args.py:23: error: Argument 4 of "__call__" is incompatible with supertype "Action"; supertype defines the argument type as "Optional[str]"
+ rotkehlchen/args.py:23: note: This violates the Liskov substitution principle
+ rotkehlchen/args.py:23: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ rotkehlchen/args.py:28: error: Incompatible default for argument "option_string" (default has type "None", argument has type "str")
+ rotkehlchen/db/drivers/gevent.py:104: error: Incompatible default for argument "size" (default has type "None", argument has type "int")
+ rotkehlchen/db/drivers/gevent.py:108: error: Statement is unreachable
+ rotkehlchen/globaldb/handler.py:102: error: Incompatible default for argument "data_dir" (default has type "None", argument has type "Path")
+ rotkehlchen/globaldb/handler.py:103: error: Incompatible default for argument "sql_vm_instructions_cb" (default has type "None", argument has type "int")
+ rotkehlchen/assets/utils.py:48: error: Incompatible default for argument "ethereum_manager" (default has type "None", argument has type "EthereumManager")
+ rotkehlchen/inquirer.py:257: error: Incompatible default for argument "data_dir" (default has type "None", argument has type "Path")
+ rotkehlchen/inquirer.py:258: error: Incompatible default for argument "cryptocompare" (default has type "None", argument has type "Cryptocompare")
+ rotkehlchen/inquirer.py:259: error: Incompatible default for argument "coingecko" (default has type "None", argument has type "Coingecko")
+ rotkehlchen/history/price.py:81: error: Incompatible default for argument "data_directory" (default has type "None", argument has type "Path")
+ rotkehlchen/history/price.py:82: error: Incompatible default for argument "cryptocompare" (default has type "None", argument has type "Cryptocompare")
+ rotkehlchen/history/price.py:83: error: Incompatible default for argument "coingecko" (default has type "None", argument has type "Coingecko")
+ rotkehlchen/exchanges/binance.py:1178: error: Incompatible default for argument "additional_options" (default has type "None", argument has type "Dict[Any, Any]")
+ rotkehlchen/db/dbhandler.py:1836: error: Incompatible default for argument "location" (default has type "None", argument has type "Location")
+ rotkehlchen/db/dbhandler.py:1837: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ rotkehlchen/externalapis/covalent.py:89: error: Incompatible default for argument "address" (default has type "None", argument has type "str")
+ rotkehlchen/exchanges/coinbasepro.py:396: error: Incompatible default for argument "query_options" (default has type "None", argument has type "Dict[str, Any]")
+ rotkehlchen/exchanges/coinbasepro.py:400: error: Statement is unreachable
+ rotkehlchen/api/v1/schemas.py:1743: error: Incompatible default for argument "coingecko" (default has type "None", argument has type "Coingecko")
+ rotkehlchen/api/v1/schemas.py:1744: error: Incompatible default for argument "cryptocompare" (default has type "None", argument has type "Cryptocompare")
+ rotkehlchen/api/v1/schemas.py:1780: error: Unused "type: ignore" comment
+ rotkehlchen/rotkehlchen.py:663: error: Incompatible default for argument "timestamp" (default has type "None", argument has type "Timestamp")
+ rotkehlchen/tests/utils/blockchain.py:77: error: Incompatible default for argument "expected_liabilities" (default has type "None", argument has type "Dict[EthereumToken, List[str]]")
+ rotkehlchen/api/server.py:369: error: Incompatible default for argument "cors_domain_list" (default has type "None", argument has type "List[str]")
+ rotkehlchen/tests/utils/api.py:21: error: Incompatible default for argument "pid" (default has type "None", argument has type "int")
+ rotkehlchen/tests/utils/api.py:24: error: Statement is unreachable

httpx-caching (https://github.com/johtso/httpx-caching)
+ httpx_caching/_sync/_transport.py:22: error: Incompatible default for argument "cache" (default has type "None", argument has type "SyncDictCache")
+ httpx_caching/_sync/_transport.py:24: error: Incompatible default for argument "heuristic" (default has type "None", argument has type "BaseHeuristic")
+ httpx_caching/_async/_transport.py:22: error: Incompatible default for argument "cache" (default has type "None", argument has type "AsyncDictCache")
+ httpx_caching/_async/_transport.py:24: error: Incompatible default for argument "heuristic" (default has type "None", argument has type "BaseHeuristic")

pydantic (https://github.com/samuelcolvin/pydantic)
+ pydantic/class_validators.py:58: error: Incompatible default for argument "whole" (default has type "None", argument has type "bool")  [assignment]
+ pydantic/types.py:227: error: Incompatible default for argument "gt" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:227: error: Incompatible default for argument "ge" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:227: error: Incompatible default for argument "lt" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:227: error: Incompatible default for argument "le" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:227: error: Incompatible default for argument "multiple_of" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:299: error: Incompatible default for argument "gt" (default has type "None", argument has type "float")  [assignment]
+ pydantic/types.py:300: error: Incompatible default for argument "ge" (default has type "None", argument has type "float")  [assignment]
+ pydantic/types.py:301: error: Incompatible default for argument "lt" (default has type "None", argument has type "float")  [assignment]
+ pydantic/types.py:302: error: Incompatible default for argument "le" (default has type "None", argument has type "float")  [assignment]
+ pydantic/types.py:303: error: Incompatible default for argument "multiple_of" (default has type "None", argument has type "float")  [assignment]
+ pydantic/types.py:363: error: Incompatible default for argument "min_length" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:364: error: Incompatible default for argument "max_length" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:436: error: Incompatible default for argument "min_length" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:437: error: Incompatible default for argument "max_length" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:438: error: Incompatible default for argument "curtail_length" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:439: error: Incompatible default for argument "regex" (default has type "None", argument has type "str")  [assignment]
+ pydantic/types.py:500: error: Incompatible default for argument "min_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:500: error: Incompatible default for argument "max_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:542: error: Incompatible default for argument "min_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:542: error: Incompatible default for argument "max_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:598: error: Incompatible default for argument "min_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:598: error: Incompatible default for argument "max_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:598: error: Incompatible default for argument "unique_items" (default has type "None", argument has type "bool")  [assignment]
+ pydantic/types.py:707: error: Incompatible default for argument "gt" (default has type "None", argument has type "Decimal")  [assignment]
+ pydantic/types.py:708: error: Incompatible default for argument "ge" (default has type "None", argument has type "Decimal")  [assignment]
+ pydantic/types.py:709: error: Incompatible default for argument "lt" (default has type "None", argument has type "Decimal")  [assignment]
+ pydantic/types.py:710: error: Incompatible default for argument "le" (default has type "None", argument has type "Decimal")  [assignment]
+ pydantic/types.py:711: error: Incompatible default for argument "max_digits" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:712: error: Incompatible default for argument "decimal_places" (default has type "None", argument has type "int")  [assignment]
+ pydantic/types.py:713: error: Incompatible default for argument "multiple_of" (default has type "None", argument has type "Decimal")  [assignment]
+ pydantic/types.py:1168: error: Incompatible default for argument "gt" (default has type "None", argument has type "date")  [assignment]
+ pydantic/types.py:1169: error: Incompatible default for argument "ge" (default has type "None", argument has type "date")  [assignment]
+ pydantic/types.py:1170: error: Incompatible default for argument "lt" (default has type "None", argument has type "date")  [assignment]
+ pydantic/types.py:1171: error: Incompatible default for argument "le" (default has type "None", argument has type "date")  [assignment]
+ pydantic/parse.py:18: error: Incompatible default for argument "content_type" (default has type "None", argument has type "str")  [assignment]
+ pydantic/parse.py:20: error: Incompatible default for argument "proto" (default has type "None", argument has type "Protocol")  [assignment]
+ pydantic/parse.py:50: error: Incompatible default for argument "content_type" (default has type "None", argument has type "str")  [assignment]
+ pydantic/parse.py:52: error: Incompatible default for argument "proto" (default has type "None", argument has type "Protocol")  [assignment]
+ pydantic/tools.py:45: error: Incompatible default for argument "content_type" (default has type "None", argument has type "str")  [assignment]
+ pydantic/tools.py:47: error: Incompatible default for argument "proto" (default has type "None", argument has type "Protocol")  [assignment]
+ pydantic/tools.py:67: error: Incompatible default for argument "content_type" (default has type "None", argument has type "str")  [assignment]
+ pydantic/tools.py:69: error: Incompatible default for argument "proto" (default has type "None", argument has type "Protocol")  [assignment]
+ pydantic/fields.py:223: error: Incompatible default for argument "alias" (default has type "None", argument has type "str")  [assignment]
+ pydantic/fields.py:224: error: Incompatible default for argument "title" (default has type "None", argument has type "str")  [assignment]
+ pydantic/fields.py:225: error: Incompatible default for argument "description" (default has type "None", argument has type "str")  [assignment]
+ pydantic/fields.py:228: error: Incompatible default for argument "const" (default has type "None", argument has type "bool")  [assignment]
+ pydantic/fields.py:229: error: Incompatible default for argument "gt" (default has type "None", argument has type "float")  [assignment]
+ pydantic/fields.py:230: error: Incompatible default for argument "ge" (default has type "None", argument has type "float")  [assignment]
+ pydantic/fields.py:231: error: Incompatible default for argument "lt" (default has type "None", argument has type "float")  [assignment]
+ pydantic/fields.py:232: error: Incompatible default for argument "le" (default has type "None", argument has type "float")  [assignment]
+ pydantic/fields.py:233: error: Incompatible default for argument "multiple_of" (default has type "None", argument has type "float")  [assignment]
+ pydantic/fields.py:234: error: Incompatible default for argument "max_digits" (default has type "None", argument has type "int")  [assignment]
+ pydantic/fields.py:235: error: Incompatible default for argument "decimal_places" (default has type "None", argument has type "int")  [assignment]
+ pydantic/fields.py:236: error: Incompatible default for argument "min_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/fields.py:237: error: Incompatible default for argument "max_items" (default has type "None", argument has type "int")  [assignment]
+ pydantic/fields.py:238: error: Incompatible default for argument "unique_items" (default has type "None", argument has type "bool")  [assignment]
+ pydantic/fields.py:239: error: Incompatible default for argument "min_length" (default has type "None", argument has type "int")  [assignment]
+ pydantic/fields.py:240: error: Incompatible default for argument "max_length" (default has type "None", argument has type "int")  [assignment]
+ pydantic/fields.py:242: error: Incompatible default for argument "regex" (default has type "None", argument has type "str")  [assignment]
+ pydantic/fields.py:243: error: Incompatible default for argument "discriminator" (default has type "None", argument has type "str")  [assignment]
+ pydantic/fields.py:398: error: Incompatible default for argument "alias" (default has type "None", argument has type "str")  [assignment]
+ pydantic/schema.py:227: error: Incompatible default for argument "known_models" (default has type "None", argument has type "Set[Union[Type[BaseModel], Type[Enum]]]")  [assignment]
+ pydantic/schema.py:347: error: Incompatible default for argument "known_models" (default has type "None", argument has type "Set[Union[Type[BaseModel], Type[Enum]]]")  [assignment]
+ pydantic/schema.py:556: error: Incompatible default for argument "known_models" (default has type "None", argument has type "Set[Union[Type[BaseModel], Type[Enum]]]")  [assignment]
+ pydantic/main.py:525: error: Incompatible default for argument "content_type" (default has type "None", argument has type "str")  [assignment]
+ pydantic/main.py:527: error: Incompatible default for argument "proto" (default has type "None", argument has type "Protocol")  [assignment]
+ pydantic/main.py:548: error: Incompatible default for argument "content_type" (default has type "None", argument has type "str")  [assignment]
+ pydantic/main.py:550: error: Incompatible default for argument "proto" (default has type "None", argument has type "Protocol")  [assignment]
+ pydantic/main.py:923: error: Incompatible default for argument "__validators__" (default has type "None", argument has type "Dict[str, classmethod[Any]]")  [assignment]
+ pydantic/main.py:924: error: Incompatible default for argument "__cls_kwargs__" (default has type "None", argument has type "Dict[str, Any]")  [assignment]
+ pydantic/main.py:937: error: Incompatible default for argument "__validators__" (default has type "None", argument has type "Dict[str, classmethod[Any]]")  [assignment]
+ pydantic/main.py:938: error: Incompatible default for argument "__cls_kwargs__" (default has type "None", argument has type "Dict[str, Any]")  [assignment]
+ pydantic/main.py:950: error: Incompatible default for argument "__validators__" (default has type "None", argument has type "Dict[str, classmethod[Any]]")  [assignment]
+ pydantic/main.py:951: error: Incompatible default for argument "__cls_kwargs__" (default has type "None", argument has type "Dict[str, Any]")  [assignment]
+ pydantic/main.py:1020: error: Incompatible default for argument "cls" (default has type "None", argument has type "Union[Type[BaseModel], Type[Dataclass]]")  [assignment]
+ pydantic/env_settings.py:221: error: Argument "encoding" to "read_env_file" has incompatible type "Optional[str]"; expected "str"  [arg-type]
+ pydantic/env_settings.py:319: error: Incompatible default for argument "encoding" (default has type "None", argument has type "str")  [assignment]
+ pydantic/generics.py:95: error: No overload variant of "create_model" matches argument types "str", "str", "Tuple[Any, ...]", "None", "Dict[str, classmethod[Any]]", "None", "Dict[Any, Tuple[DeferredType, FieldInfo]]"  [call-overload]
+ pydantic/generics.py:95: note: Possible overload variants:
+ pydantic/generics.py:95: note:     def create_model(__model_name, str, *, __config__: Optional[Type[BaseConfig]] = ..., __base__: None = ..., __module__: str = ..., __validators__: Dict[str, classmethod[Any]] = ..., __cls_kwargs__: Dict[str, Any] = ..., **field_definitions: Any) -> Type[BaseModel]
+ pydantic/generics.py:95: note:     def [Model <: BaseModel] create_model(__model_name, str, *, __config__: Optional[Type[BaseConfig]] = ..., __base__: Union[Type[Model], Tuple[Type[Model], ...]], __module__: str = ..., __validators__: Dict[str, classmethod[Any]] = ..., __cls_kwargs__: Dict[str, Any] = ..., **field_definitions: Any) -> Type[Model]

stone (https://github.com/dropbox/stone)
+ test/test_tsd_types.py:30: error: Incompatible default for argument "custom_args" (default has type "None", argument has type "List[Any]")

parso (https://github.com/davidhalter/parso)
+ parso/utils.py:183: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/utils.py:190: error: Statement is unreachable
+ parso/python/tokenize.py:367: error: Incompatible default for argument "indents" (default has type "None", argument has type "List[int]")
+ parso/python/tokenize.py:392: error: Statement is unreachable
+ parso/grammar.py:50: error: Incompatible default for argument "code" (default has type "None", argument has type "Union[str, bytes]")
+ parso/grammar.py:53: error: Incompatible default for argument "path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:54: error: Incompatible default for argument "start_symbol" (default has type "None", argument has type "str")
+ parso/grammar.py:57: error: Incompatible default for argument "cache_path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:58: error: Incompatible default for argument "file_io" (default has type "None", argument has type "FileIO")
+ parso/grammar.py:93: error: Right operand of "and" is never evaluated
+ parso/grammar.py:102: error: Statement is unreachable
+ parso/grammar.py:108: error: Statement is unreachable
+ parso/grammar.py:109: error: Unused "type: ignore" comment
+ parso/grammar.py:119: error: Statement is unreachable
+ parso/grammar.py:234: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/grammar.py:234: error: Incompatible default for argument "path" (default has type "None", argument has type "str")

pip (https://github.com/pypa/pip)
+ src/pip/_internal/utils/setuptools_build.py:51: error: Incompatible default for argument "global_options" (default has type "None", argument has type "Sequence[str]")
+ src/pip/_internal/exceptions.py:291: error: Incompatible default for argument "response" (default has type "None", argument has type "Response")
+ src/pip/_internal/exceptions.py:291: error: Incompatible default for argument "request" (default has type "None", argument has type "Request")
+ src/pip/_internal/locations/__init__.py:382: error: Argument 3 to "distutils_scheme" has incompatible type "Optional[str]"; expected "str"
+ src/pip/_internal/locations/__init__.py:383: error: Argument 4 to "distutils_scheme" has incompatible type "Optional[str]"; expected "str"
+ src/pip/_internal/locations/__init__.py:385: error: Argument 6 to "distutils_scheme" has incompatible type "Optional[str]"; expected "str"
+ src/pip/_internal/utils/hashes.py:31: error: Incompatible default for argument "hashes" (default has type "None", argument has type "Dict[str, List[str]]")
+ src/pip/_internal/cli/spinners.py:26: error: Incompatible default for argument "file" (default has type "None", argument has type "IO[str]")
+ src/pip/_internal/vcs/subversion.py:187: error: Incompatible default for argument "use_interactive" (default has type "None", argument has type "bool")
+ src/pip/_internal/operations/install/wheel.py:423: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")

vision (https://github.com/pytorch/vision)
+ torchvision/datasets/utils.py:461: error: Incompatible default for argument "valid_values" (default has type "None", argument has type "Iterable[str]")  [assignment]
+ torchvision/datasets/utils.py:461: error: Incompatible default for argument "valid_values" (default has type "None", argument has type "Iterable[bytes]")  [assignment]
+ torchvision/prototype/datasets/utils/_dataset.py:21: error: Argument 3 to "verify_str_arg" has incompatible type "Optional[Collection[str]]"; expected "Iterable[str]"  [arg-type]

sympy (https://github.com/sympy/sympy)
+ sympy/core/evalf.py:1764: error: Incompatible default for argument "eps" (default has type "None", argument has type "Expr")
+ sympy/core/evalf.py:1765: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")

kornia (https://github.com/kornia/kornia)
+ kornia/utils/helpers.py:31: error: Incompatible default for argument "func" (default has type "None", argument has type "Callable[..., Any]")  [assignment]
+ kornia/x/trainers.py:73: error: Incompatible default for argument "callbacks" (default has type "None", argument has type "Dict[str, Callable[..., Any]]")  [assignment]
+ kornia/augmentation/_2d/geometric/crop.py:130: error: Incompatible default for argument "padding" (default has type "None", argument has type "List[int]")  [assignment]

git-revise (https://github.com/mystor/git-revise)
+ gitrevise/odb.py:225: error: Incompatible default for argument "env" (default has type "None", argument has type "Dict[str, str]")

jax (https://github.com/google/jax)
+ jax/_src/iree.py:139: error: Incompatible default for argument "iree_backend" (default has type "None", argument has type "str")  [assignment]

cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/url_helper.py:378: error: Incompatible default for argument "delay" (default has type "None", argument has type "float")
+ cloudinit/url_helper.py:479: error: Incompatible default for argument "headers_cb" (default has type "None", argument has type "Callable[..., Any]")
+ cloudinit/url_helper.py:482: error: Incompatible default for argument "exception_cb" (default has type "None", argument has type "Callable[..., Any]")
+ cloudinit/url_helper.py:483: error: Incompatible default for argument "sleep_time_cb" (default has type "None", argument has type "Callable[[Any, int], int]")
+ cloudinit/net/ephemeral.py:38: error: Incompatible default for argument "connectivity_url_data" (default has type "

... (truncated 774 lines) ...

github-actions[bot] avatar Aug 13 '22 01:08 github-actions[bot]

Yikes, it's popular

hauntsaninja avatar Aug 13 '22 01:08 hauntsaninja

Since this will impact many projects, we may want to announce this in the blog post for the previous feature release to give users a chance to prepare for this. (cc @jhance)

It may also make sense to generate an additional note if we encounter an argument type with a missing Optional[...]. The note could have a link to the docs for --implicit-optional.

Can you also update documentation to reflect the new default? At least these files seem relevant:

  • docs/source/kinds_of_types.rst
  • docs/source/command_line.rst
  • docs/source/config_file.rst

JukkaL avatar Aug 23 '22 15:08 JukkaL

Diff from mypy_primer, showing the effect of this PR on open source code:

sympy (https://github.com/sympy/sympy)
+ sympy/core/evalf.py:1764: error: Incompatible default for argument "eps" (default has type "None", argument has type "Expr")
+ sympy/core/evalf.py:1765: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")

dulwich (https://github.com/dulwich/dulwich)
+ dulwich/repo.py:637: error: Incompatible default for argument "commit" (default has type "None", argument has type "Commit")
+ dulwich/repo.py:830: error: Incompatible default for argument "kind" (default has type "None", argument has type "str")
+ dulwich/client.py:913: error: Incompatible default for argument "progress" (default has type "None", argument has type "Callable[[bytes], None]")

manticore (https://github.com/trailofbits/manticore)
+ manticore/utils/config.py:42: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/utils/config.py:95: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/utils/config.py:118: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/core/smtlib/solver.py:346: error: Incompatible default for argument "init" (default has type "None", argument has type "Sequence[str]")
+ manticore/native/cpu/abstractcpu.py:761: error: Incompatible default for argument "size" (default has type "None", argument has type "int")

stone (https://github.com/dropbox/stone)
+ test/test_tsd_types.py:30: error: Incompatible default for argument "custom_args" (default has type "None", argument has type "List[Any]")

pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/connection.py:81: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/connection.py:210: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/execution_context.py:33: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/tracing.py:32: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:91: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:119: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:522: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:541: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:773: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:848: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:857: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:912: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:946: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:979: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:989: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1018: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1066: error: Incompatible default for argument "mediaType" (default has type "None", argument has type "str")
+ pyppeteer/page.py:1137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1248: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1410: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1446: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1507: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1520: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1554: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1582: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1611: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1692: error: Incompatible default for argument "args" (default has type "None", argument has type "List[JSHandle]")
+ pyppeteer/network_manager.py:229: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:430: error: Incompatible default for argument "overrides" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:592: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:20: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:108: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/navigator_watcher.py:114: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/launcher.py:70: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")
+ pyppeteer/launcher.py:239: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:310: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:365: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:58: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:188: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:217: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:261: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:285: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:306: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:326: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:184: error: Argument 4 to "ExecutionContext" has incompatible type "Optional[Frame]"; expected "Frame"
+ pyppeteer/frame_manager.py:218: error: Incompatible default for argument "remoteObject" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:574: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:651: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:665: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:691: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:700: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:709: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:722: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:162: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:209: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:219: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:295: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:53: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:93: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:230: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/browser.py:39: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")
+ pyppeteer/browser.py:142: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")

parso (https://github.com/davidhalter/parso)
+ parso/utils.py:183: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/utils.py:190: error: Statement is unreachable
+ parso/python/tokenize.py:367: error: Incompatible default for argument "indents" (default has type "None", argument has type "List[int]")
+ parso/python/tokenize.py:392: error: Statement is unreachable
+ parso/grammar.py:50: error: Incompatible default for argument "code" (default has type "None", argument has type "Union[str, bytes]")
+ parso/grammar.py:53: error: Incompatible default for argument "path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:54: error: Incompatible default for argument "start_symbol" (default has type "None", argument has type "str")
+ parso/grammar.py:57: error: Incompatible default for argument "cache_path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:58: error: Incompatible default for argument "file_io" (default has type "None", argument has type "FileIO")
+ parso/grammar.py:93: error: Right operand of "and" is never evaluated
+ parso/grammar.py:102: error: Statement is unreachable
+ parso/grammar.py:108: error: Statement is unreachable
+ parso/grammar.py:109: error: Unused "type: ignore" comment
+ parso/grammar.py:119: error: Statement is unreachable
+ parso/grammar.py:234: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/grammar.py:234: error: Incompatible default for argument "path" (default has type "None", argument has type "str")

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/list_programs.py:51: error: Incompatible default for argument "relative_path" (default has type "None", argument has type "Path")

xarray (https://github.com/pydata/xarray)
+ xarray/backends/lru_cache.py:33: error: Incompatible default for argument "on_evict" (default has type "None", argument has type "Callable[[K, V], Any]")  [assignment]
+ xarray/core/utils.py:517: error: Incompatible default for argument "values" (default has type "None", argument has type "Iterable[T]")  [assignment]
+ xarray/core/formatting.py:287: error: Incompatible default for argument "max_width" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/indexes.py:46: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:311: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:591: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:1262: error: Incompatible default for argument "cache" (default has type "None", argument has type "Dict[Tuple[int, int], Optional[bool]]")  [assignment]
+ xarray/core/common.py:769: error: Incompatible default for argument "window" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/variable.py:1052: error: Incompatible default for argument "name" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/variable.py:1202: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/variable.py:2031: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2032: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2033: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/variable.py:2426: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2460: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2623: error: Incompatible default for argument "axis" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/variable.py:2624: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2625: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2668: error: Incompatible default for argument "axis" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/variable.py:2669: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2670: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/missing.py:314: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/missing.py:316: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/merge.py:210: error: Incompatible default for argument "prioritized" (default has type "None", argument has type "Mapping[Any, Tuple[Variable, Optional[Index]]]")  [assignment]
+ xarray/core/merge.py:394: error: Incompatible default for argument "prioritized" (default has type "None", argument has type "Mapping[Any, Tuple[Variable, Optional[Index]]]")  [assignment]
+ xarray/core/groupby.py:1134: error: Argument 4 of "reduce" is incompatible with supertype "GroupBy"; supertype defines the argument type as "Optional[bool]"  [override]
+ xarray/core/groupby.py:1134: note: This violates the Liskov substitution principle
+ xarray/core/groupby.py:1134: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ xarray/core/groupby.py:1140: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/groupby.py:1284: error: Argument 4 of "reduce" is incompatible with supertype "GroupBy"; supertype defines the argument type as "Optional[bool]"  [override]
+ xarray/core/groupby.py:1284: note: This violates the Liskov substitution principle
+ xarray/core/groupby.py:1284: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ xarray/core/groupby.py:1290: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:154: error: Incompatible default for argument "dim_sizes" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:829: error: Incompatible default for argument "rename" (default has type "None", argument has type "Mapping[str, str]")  [assignment]
+ xarray/core/dataset.py:969: error: Incompatible default for argument "variables" (default has type "None", argument has type "Dict[Hashable, Variable]")  [assignment]
+ xarray/core/dataset.py:2472: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:2473: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataset.py:2737: error: Incompatible default for argument "exclude" (default has type "None", argument has type "Iterable[Hashable]")  [assignment]
+ xarray/core/dataset.py:2881: error: Argument "method" to "reindex_like" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataset.py:3097: error: Argument "method" to "reindex" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataset.py:3105: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:3106: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataset.py:3132: error: Incompatible default for argument "kwargs" (default has type "None", argument has type "Mapping[str, Any]")  [assignment]
+ xarray/core/dataset.py:3651: error: Incompatible default for argument "name_dict" (default has type "None", argument has type "Mapping[Any, Hashable]")  [assignment]
+ xarray/core/dataset.py:3689: error: Incompatible default for argument "dims_dict" (default has type "None", argument has type "Mapping[Any, Hashable]")  [assignment]
+ xarray/core/dataset.py:5301: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/dataset.py:6703: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:6704: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:6705: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/dataset.py:7415: error: Argument 4 to "map_blocks" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataset.py:7615: error: Incompatible default for argument "pad_width" (default has type "None", argument has type "Mapping[Any, Union[int, Tuple[int, int]]]")  [assignment]
+ xarray/core/dataarray.py:375: error: Incompatible default for argument "attrs" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:377: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Dict[Hashable, Index]")  [assignment]
+ xarray/core/dataarray.py:449: error: Incompatible default for argument "variable" (default has type "None", argument has type "Variable")  [assignment]
+ xarray/core/dataarray.py:492: error: Incompatible default for argument "coords" (default has type "None", argument has type "Mapping[Any, Variable]")  [assignment]
+ xarray/core/dataarray.py:493: error: Incompatible default for argument "drop_coords" (default has type "None", argument has type "List[Hashable]")  [assignment]
+ xarray/core/dataarray.py:494: error: Incompatible default for argument "rename_dims" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1318: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1319: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataarray.py:1689: error: Argument "method" to "reindex_like" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataarray.py:1697: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1780: error: Argument "method" to "reindex" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataarray.py:1924: error: Argument "kwargs" to "interp" of "Dataset" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataarray.py:2165: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Mapping[Any, Union[Hashable, Sequence[Hashable]]]")  [assignment]
+ xarray/core/dataarray.py:2808: error: Argument "limit" to "interp_na" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:2811: error: Argument "keep_attrs" to "interp_na" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:3337: error: Argument 5 to "DataArray" has incompatible type "Optional[Any]"; expected "Mapping[Any, Any]"  [arg-type]
+ xarray/core/dataarray.py:3896: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/dataarray.py:4001: error: Argument "keep_attrs" to "quantile" of "Dataset" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4003: error: Argument "skipna" to "quantile" of "Dataset" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4350: error: Argument 4 to "map_blocks" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataarray.py:4569: error: Argument "pad_width" to "pad" of "Dataset" has incompatible type "Optional[Mapping[Any, Union[int, Tuple[int, int]]]]"; expected "Mapping[Any, Union[int, Tuple[int, int]]]"  [arg-type]
+ xarray/core/dataarray.py:4670: error: Argument "skipna" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4672: error: Argument "keep_attrs" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4766: error: Argument "skipna" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4768: error: Argument "keep_attrs" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 2 to "argmin" of "Variable" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 3 to "argmin" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 4 to "argmin" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 2 to "argmax" of "Variable" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 3 to "argmax" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 4 to "argmax" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/coordinates.py:82: error: Incompatible default for argument "ordered_dims" (default has type "None", argument has type "Sequence[Hashable]")  [assignment]
+ xarray/core/concat.py:569: error: Argument 3 to "concat" of "Index" has incompatible type "Optional[Iterable[Iterable[int]]]"; expected "Iterable[Iterable[int]]"  [arg-type]
+ xarray/core/computation.py:849: error: Incompatible default for argument "input_core_dims" (default has type "None", argument has type "Sequence[Sequence[Any]]")  [assignment]
+ xarray/core/computation.py:2000: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/computation.py:2002: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/alignment.py:137: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/alignment.py:140: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/alignment.py:854: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/alignment.py:893: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/accessor_str.py:114: error: Incompatible default for argument "output_sizes" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/accessor_str.py:224: error: Incompatible default for argument "output_sizes" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/accessor_str.py:852: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1099: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1172: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1533: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1605: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1750: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1923: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/parallel.py:168: error: Incompatible default for argument "kwargs" (default has type "None", argument has type "Mapping[str, Any]")  [assignment]
+ xarray/core/combine.py:672: error: Incompatible default for argument "datasets" (default has type "None", argument has type "Iterable[Dataset]")  [assignment]
+ xarray/core/weighted.py:316: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/weighted.py:520: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/rolling.py:1000: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/rolling.py:1031: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has t

... (truncated 805 lines) ...

github-actions[bot] avatar Aug 24 '22 20:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

sympy (https://github.com/sympy/sympy)
+ sympy/core/evalf.py:1764: error: Incompatible default for argument "eps" (default has type "None", argument has type "Expr")
+ sympy/core/evalf.py:1765: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")

manticore (https://github.com/trailofbits/manticore)
+ manticore/utils/config.py:42: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/utils/config.py:95: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/utils/config.py:118: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/core/smtlib/solver.py:346: error: Incompatible default for argument "init" (default has type "None", argument has type "Sequence[str]")
+ manticore/native/cpu/abstractcpu.py:761: error: Incompatible default for argument "size" (default has type "None", argument has type "int")

dulwich (https://github.com/dulwich/dulwich)
+ dulwich/repo.py:637: error: Incompatible default for argument "commit" (default has type "None", argument has type "Commit")
+ dulwich/repo.py:830: error: Incompatible default for argument "kind" (default has type "None", argument has type "str")
+ dulwich/client.py:913: error: Incompatible default for argument "progress" (default has type "None", argument has type "Callable[[bytes], None]")

stone (https://github.com/dropbox/stone)
+ test/test_tsd_types.py:30: error: Incompatible default for argument "custom_args" (default has type "None", argument has type "List[Any]")

pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/connection.py:81: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/connection.py:210: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/execution_context.py:33: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/tracing.py:32: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:91: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:119: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:522: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:541: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:773: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:848: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:857: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:912: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:946: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:979: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:989: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1018: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1066: error: Incompatible default for argument "mediaType" (default has type "None", argument has type "str")
+ pyppeteer/page.py:1137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1248: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1410: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1446: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1507: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1520: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1554: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1582: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1611: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1692: error: Incompatible default for argument "args" (default has type "None", argument has type "List[JSHandle]")
+ pyppeteer/network_manager.py:229: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:430: error: Incompatible default for argument "overrides" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:592: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:20: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:108: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/navigator_watcher.py:114: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/launcher.py:70: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")
+ pyppeteer/launcher.py:239: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:310: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:365: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:58: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:188: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:217: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:261: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:285: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:306: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:326: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:184: error: Argument 4 to "ExecutionContext" has incompatible type "Optional[Frame]"; expected "Frame"
+ pyppeteer/frame_manager.py:218: error: Incompatible default for argument "remoteObject" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:574: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:651: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:665: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:691: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:700: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:709: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:722: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:162: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:209: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:219: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:295: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:53: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:93: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:230: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/browser.py:39: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")
+ pyppeteer/browser.py:142: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")

parso (https://github.com/davidhalter/parso)
+ parso/utils.py:183: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/utils.py:190: error: Statement is unreachable
+ parso/python/tokenize.py:367: error: Incompatible default for argument "indents" (default has type "None", argument has type "List[int]")
+ parso/python/tokenize.py:392: error: Statement is unreachable
+ parso/grammar.py:50: error: Incompatible default for argument "code" (default has type "None", argument has type "Union[str, bytes]")
+ parso/grammar.py:53: error: Incompatible default for argument "path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:54: error: Incompatible default for argument "start_symbol" (default has type "None", argument has type "str")
+ parso/grammar.py:57: error: Incompatible default for argument "cache_path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:58: error: Incompatible default for argument "file_io" (default has type "None", argument has type "FileIO")
+ parso/grammar.py:93: error: Right operand of "and" is never evaluated
+ parso/grammar.py:102: error: Statement is unreachable
+ parso/grammar.py:108: error: Statement is unreachable
+ parso/grammar.py:109: error: Unused "type: ignore" comment
+ parso/grammar.py:119: error: Statement is unreachable
+ parso/grammar.py:234: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/grammar.py:234: error: Incompatible default for argument "path" (default has type "None", argument has type "str")

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/list_programs.py:51: error: Incompatible default for argument "relative_path" (default has type "None", argument has type "Path")

xarray (https://github.com/pydata/xarray)
+ xarray/backends/lru_cache.py:33: error: Incompatible default for argument "on_evict" (default has type "None", argument has type "Callable[[K, V], Any]")  [assignment]
+ xarray/core/utils.py:517: error: Incompatible default for argument "values" (default has type "None", argument has type "Iterable[T]")  [assignment]
+ xarray/core/formatting.py:287: error: Incompatible default for argument "max_width" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/indexes.py:46: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:311: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:591: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:1262: error: Incompatible default for argument "cache" (default has type "None", argument has type "Dict[Tuple[int, int], Optional[bool]]")  [assignment]
+ xarray/core/common.py:769: error: Incompatible default for argument "window" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/variable.py:1052: error: Incompatible default for argument "name" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/variable.py:1202: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/variable.py:2031: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2032: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2033: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/variable.py:2426: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2460: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2623: error: Incompatible default for argument "axis" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/variable.py:2624: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2625: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2668: error: Incompatible default for argument "axis" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/variable.py:2669: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2670: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/missing.py:314: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/missing.py:316: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/merge.py:210: error: Incompatible default for argument "prioritized" (default has type "None", argument has type "Mapping[Any, Tuple[Variable, Optional[Index]]]")  [assignment]
+ xarray/core/merge.py:394: error: Incompatible default for argument "prioritized" (default has type "None", argument has type "Mapping[Any, Tuple[Variable, Optional[Index]]]")  [assignment]
+ xarray/core/groupby.py:1134: error: Argument 4 of "reduce" is incompatible with supertype "GroupBy"; supertype defines the argument type as "Optional[bool]"  [override]
+ xarray/core/groupby.py:1134: note: This violates the Liskov substitution principle
+ xarray/core/groupby.py:1134: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ xarray/core/groupby.py:1140: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/groupby.py:1284: error: Argument 4 of "reduce" is incompatible with supertype "GroupBy"; supertype defines the argument type as "Optional[bool]"  [override]
+ xarray/core/groupby.py:1284: note: This violates the Liskov substitution principle
+ xarray/core/groupby.py:1284: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ xarray/core/groupby.py:1290: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:154: error: Incompatible default for argument "dim_sizes" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:829: error: Incompatible default for argument "rename" (default has type "None", argument has type "Mapping[str, str]")  [assignment]
+ xarray/core/dataset.py:969: error: Incompatible default for argument "variables" (default has type "None", argument has type "Dict[Hashable, Variable]")  [assignment]
+ xarray/core/dataset.py:2472: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:2473: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataset.py:2737: error: Incompatible default for argument "exclude" (default has type "None", argument has type "Iterable[Hashable]")  [assignment]
+ xarray/core/dataset.py:2881: error: Argument "method" to "reindex_like" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataset.py:3097: error: Argument "method" to "reindex" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataset.py:3105: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:3106: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataset.py:3132: error: Incompatible default for argument "kwargs" (default has type "None", argument has type "Mapping[str, Any]")  [assignment]
+ xarray/core/dataset.py:3651: error: Incompatible default for argument "name_dict" (default has type "None", argument has type "Mapping[Any, Hashable]")  [assignment]
+ xarray/core/dataset.py:3689: error: Incompatible default for argument "dims_dict" (default has type "None", argument has type "Mapping[Any, Hashable]")  [assignment]
+ xarray/core/dataset.py:5301: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/dataset.py:6703: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:6704: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:6705: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/dataset.py:7415: error: Argument 4 to "map_blocks" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataset.py:7615: error: Incompatible default for argument "pad_width" (default has type "None", argument has type "Mapping[Any, Union[int, Tuple[int, int]]]")  [assignment]
+ xarray/core/dataarray.py:375: error: Incompatible default for argument "attrs" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:377: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Dict[Hashable, Index]")  [assignment]
+ xarray/core/dataarray.py:449: error: Incompatible default for argument "variable" (default has type "None", argument has type "Variable")  [assignment]
+ xarray/core/dataarray.py:492: error: Incompatible default for argument "coords" (default has type "None", argument has type "Mapping[Any, Variable]")  [assignment]
+ xarray/core/dataarray.py:493: error: Incompatible default for argument "drop_coords" (default has type "None", argument has type "List[Hashable]")  [assignment]
+ xarray/core/dataarray.py:494: error: Incompatible default for argument "rename_dims" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1318: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1319: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataarray.py:1689: error: Argument "method" to "reindex_like" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataarray.py:1697: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1780: error: Argument "method" to "reindex" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataarray.py:1924: error: Argument "kwargs" to "interp" of "Dataset" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataarray.py:2165: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Mapping[Any, Union[Hashable, Sequence[Hashable]]]")  [assignment]
+ xarray/core/dataarray.py:2808: error: Argument "limit" to "interp_na" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:2811: error: Argument "keep_attrs" to "interp_na" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:3337: error: Argument 5 to "DataArray" has incompatible type "Optional[Any]"; expected "Mapping[Any, Any]"  [arg-type]
+ xarray/core/dataarray.py:3896: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/dataarray.py:4001: error: Argument "keep_attrs" to "quantile" of "Dataset" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4003: error: Argument "skipna" to "quantile" of "Dataset" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4350: error: Argument 4 to "map_blocks" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataarray.py:4569: error: Argument "pad_width" to "pad" of "Dataset" has incompatible type "Optional[Mapping[Any, Union[int, Tuple[int, int]]]]"; expected "Mapping[Any, Union[int, Tuple[int, int]]]"  [arg-type]
+ xarray/core/dataarray.py:4670: error: Argument "skipna" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4672: error: Argument "keep_attrs" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4766: error: Argument "skipna" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4768: error: Argument "keep_attrs" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 2 to "argmin" of "Variable" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 3 to "argmin" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 4 to "argmin" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 2 to "argmax" of "Variable" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 3 to "argmax" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 4 to "argmax" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/coordinates.py:82: error: Incompatible default for argument "ordered_dims" (default has type "None", argument has type "Sequence[Hashable]")  [assignment]
+ xarray/core/concat.py:569: error: Argument 3 to "concat" of "Index" has incompatible type "Optional[Iterable[Iterable[int]]]"; expected "Iterable[Iterable[int]]"  [arg-type]
+ xarray/core/computation.py:849: error: Incompatible default for argument "input_core_dims" (default has type "None", argument has type "Sequence[Sequence[Any]]")  [assignment]
+ xarray/core/computation.py:2000: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/computation.py:2002: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/alignment.py:137: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/alignment.py:140: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/alignment.py:854: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/alignment.py:893: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/accessor_str.py:114: error: Incompatible default for argument "output_sizes" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/accessor_str.py:224: error: Incompatible default for argument "output_sizes" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/accessor_str.py:852: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1099: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1172: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1533: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1605: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1750: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1923: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/parallel.py:168: error: Incompatible default for argument "kwargs" (default has type "None", argument has type "Mapping[str, Any]")  [assignment]
+ xarray/core/combine.py:672: error: Incompatible default for argument "datasets" (default has type "None", argument has type "Iterable[Dataset]")  [assignment]
+ xarray/core/weighted.py:316: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/weighted.py:520: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/rolling.py:1000: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/rolling.py:1031: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has t

... (truncated 805 lines) ...

github-actions[bot] avatar Aug 24 '22 20:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

sympy (https://github.com/sympy/sympy)
+ sympy/core/evalf.py:1764: error: Incompatible default for argument "eps" (default has type "None", argument has type "Expr")
+ sympy/core/evalf.py:1765: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")

stone (https://github.com/dropbox/stone)
+ test/test_tsd_types.py:30: error: Incompatible default for argument "custom_args" (default has type "None", argument has type "List[Any]")

dulwich (https://github.com/dulwich/dulwich)
+ dulwich/repo.py:637: error: Incompatible default for argument "commit" (default has type "None", argument has type "Commit")
+ dulwich/repo.py:830: error: Incompatible default for argument "kind" (default has type "None", argument has type "str")
+ dulwich/client.py:913: error: Incompatible default for argument "progress" (default has type "None", argument has type "Callable[[bytes], None]")

manticore (https://github.com/trailofbits/manticore)
+ manticore/utils/config.py:42: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/utils/config.py:95: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/utils/config.py:118: error: Incompatible default for argument "description" (default has type "None", argument has type "str")
+ manticore/core/smtlib/solver.py:346: error: Incompatible default for argument "init" (default has type "None", argument has type "Sequence[str]")
+ manticore/native/cpu/abstractcpu.py:761: error: Incompatible default for argument "size" (default has type "None", argument has type "int")

pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/connection.py:81: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/connection.py:210: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/execution_context.py:33: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/tracing.py:32: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:91: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:119: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:522: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:541: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:773: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:848: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:857: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:912: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:946: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:979: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:989: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1018: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1066: error: Incompatible default for argument "mediaType" (default has type "None", argument has type "str")
+ pyppeteer/page.py:1137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1248: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1410: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1446: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1507: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1520: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1554: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1582: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1611: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1692: error: Incompatible default for argument "args" (default has type "None", argument has type "List[JSHandle]")
+ pyppeteer/network_manager.py:229: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:430: error: Incompatible default for argument "overrides" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:592: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:20: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:108: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/navigator_watcher.py:114: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/launcher.py:70: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")
+ pyppeteer/launcher.py:239: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:310: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:365: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:58: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:188: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:217: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:261: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:285: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:306: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:326: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:184: error: Argument 4 to "ExecutionContext" has incompatible type "Optional[Frame]"; expected "Frame"
+ pyppeteer/frame_manager.py:218: error: Incompatible default for argument "remoteObject" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:574: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:651: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:665: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:691: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:700: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:709: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:722: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:162: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:209: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:219: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:295: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:53: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:93: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:230: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/browser.py:39: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")
+ pyppeteer/browser.py:142: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")

parso (https://github.com/davidhalter/parso)
+ parso/utils.py:183: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/utils.py:190: error: Statement is unreachable
+ parso/python/tokenize.py:367: error: Incompatible default for argument "indents" (default has type "None", argument has type "List[int]")
+ parso/python/tokenize.py:392: error: Statement is unreachable
+ parso/grammar.py:50: error: Incompatible default for argument "code" (default has type "None", argument has type "Union[str, bytes]")
+ parso/grammar.py:53: error: Incompatible default for argument "path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:54: error: Incompatible default for argument "start_symbol" (default has type "None", argument has type "str")
+ parso/grammar.py:57: error: Incompatible default for argument "cache_path" (default has type "None", argument has type "Union[PathLike[Any], str]")
+ parso/grammar.py:58: error: Incompatible default for argument "file_io" (default has type "None", argument has type "FileIO")
+ parso/grammar.py:93: error: Right operand of "and" is never evaluated
+ parso/grammar.py:102: error: Statement is unreachable
+ parso/grammar.py:108: error: Statement is unreachable
+ parso/grammar.py:109: error: Unused "type: ignore" comment
+ parso/grammar.py:119: error: Statement is unreachable
+ parso/grammar.py:234: error: Incompatible default for argument "version" (default has type "None", argument has type "str")
+ parso/grammar.py:234: error: Incompatible default for argument "path" (default has type "None", argument has type "str")

xarray (https://github.com/pydata/xarray)
+ xarray/backends/lru_cache.py:33: error: Incompatible default for argument "on_evict" (default has type "None", argument has type "Callable[[K, V], Any]")  [assignment]
+ xarray/core/utils.py:517: error: Incompatible default for argument "values" (default has type "None", argument has type "Iterable[T]")  [assignment]
+ xarray/core/formatting.py:287: error: Incompatible default for argument "max_width" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/indexes.py:46: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:311: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:591: error: Incompatible default for argument "positions" (default has type "None", argument has type "Iterable[Iterable[int]]")  [assignment]
+ xarray/core/indexes.py:1262: error: Incompatible default for argument "cache" (default has type "None", argument has type "Dict[Tuple[int, int], Optional[bool]]")  [assignment]
+ xarray/core/common.py:769: error: Incompatible default for argument "window" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/variable.py:1052: error: Incompatible default for argument "name" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/variable.py:1202: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/variable.py:2031: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2032: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2033: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/variable.py:2426: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2460: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2623: error: Incompatible default for argument "axis" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/variable.py:2624: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2625: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2668: error: Incompatible default for argument "axis" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/variable.py:2669: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/variable.py:2670: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/missing.py:314: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/missing.py:316: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/merge.py:210: error: Incompatible default for argument "prioritized" (default has type "None", argument has type "Mapping[Any, Tuple[Variable, Optional[Index]]]")  [assignment]
+ xarray/core/merge.py:394: error: Incompatible default for argument "prioritized" (default has type "None", argument has type "Mapping[Any, Tuple[Variable, Optional[Index]]]")  [assignment]
+ xarray/core/groupby.py:1134: error: Argument 4 of "reduce" is incompatible with supertype "GroupBy"; supertype defines the argument type as "Optional[bool]"  [override]
+ xarray/core/groupby.py:1134: note: This violates the Liskov substitution principle
+ xarray/core/groupby.py:1134: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ xarray/core/groupby.py:1140: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/groupby.py:1284: error: Argument 4 of "reduce" is incompatible with supertype "GroupBy"; supertype defines the argument type as "Optional[bool]"  [override]
+ xarray/core/groupby.py:1284: note: This violates the Liskov substitution principle
+ xarray/core/groupby.py:1284: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ xarray/core/groupby.py:1290: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:154: error: Incompatible default for argument "dim_sizes" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:829: error: Incompatible default for argument "rename" (default has type "None", argument has type "Mapping[str, str]")  [assignment]
+ xarray/core/dataset.py:969: error: Incompatible default for argument "variables" (default has type "None", argument has type "Dict[Hashable, Variable]")  [assignment]
+ xarray/core/dataset.py:2472: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:2473: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataset.py:2737: error: Incompatible default for argument "exclude" (default has type "None", argument has type "Iterable[Hashable]")  [assignment]
+ xarray/core/dataset.py:2881: error: Argument "method" to "reindex_like" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataset.py:3097: error: Argument "method" to "reindex" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataset.py:3105: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataset.py:3106: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataset.py:3132: error: Incompatible default for argument "kwargs" (default has type "None", argument has type "Mapping[str, Any]")  [assignment]
+ xarray/core/dataset.py:3651: error: Incompatible default for argument "name_dict" (default has type "None", argument has type "Mapping[Any, Hashable]")  [assignment]
+ xarray/core/dataset.py:3689: error: Incompatible default for argument "dims_dict" (default has type "None", argument has type "Mapping[Any, Hashable]")  [assignment]
+ xarray/core/dataset.py:5301: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")  [assignment]
+ xarray/core/dataset.py:6703: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:6704: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/dataset.py:6705: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/dataset.py:7415: error: Argument 4 to "map_blocks" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataset.py:7615: error: Incompatible default for argument "pad_width" (default has type "None", argument has type "Mapping[Any, Union[int, Tuple[int, int]]]")  [assignment]
+ xarray/core/dataarray.py:375: error: Incompatible default for argument "attrs" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:377: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Dict[Hashable, Index]")  [assignment]
+ xarray/core/dataarray.py:449: error: Incompatible default for argument "variable" (default has type "None", argument has type "Variable")  [assignment]
+ xarray/core/dataarray.py:492: error: Incompatible default for argument "coords" (default has type "None", argument has type "Mapping[Any, Variable]")  [assignment]
+ xarray/core/dataarray.py:493: error: Incompatible default for argument "drop_coords" (default has type "None", argument has type "List[Hashable]")  [assignment]
+ xarray/core/dataarray.py:494: error: Incompatible default for argument "rename_dims" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1318: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1319: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/dataarray.py:1689: error: Argument "method" to "reindex_like" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataarray.py:1697: error: Incompatible default for argument "indexers" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/dataarray.py:1780: error: Argument "method" to "reindex" has incompatible type "Optional[Literal['nearest', 'pad', 'ffill', 'backfill', 'bfill']]"; expected "str"  [arg-type]
+ xarray/core/dataarray.py:1924: error: Argument "kwargs" to "interp" of "Dataset" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataarray.py:2165: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Mapping[Any, Union[Hashable, Sequence[Hashable]]]")  [assignment]
+ xarray/core/dataarray.py:2808: error: Argument "limit" to "interp_na" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:2811: error: Argument "keep_attrs" to "interp_na" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:3337: error: Argument 5 to "DataArray" has incompatible type "Optional[Any]"; expected "Mapping[Any, Any]"  [arg-type]
+ xarray/core/dataarray.py:3896: error: Incompatible default for argument "interpolation" (default has type "None", argument has type "Literal['inverted_cdf', 'averaged_inverted_cdf', 'closest_observation', 'interpolated_inverted_cdf', 'hazen', 'weibull', 'linear', 'median_unbiased', 'normal_unbiased', 'lower', 'higher', 'midpoint', 'nearest']")  [assignment]
+ xarray/core/dataarray.py:4001: error: Argument "keep_attrs" to "quantile" of "Dataset" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4003: error: Argument "skipna" to "quantile" of "Dataset" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4350: error: Argument 4 to "map_blocks" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[str, Any]"  [arg-type]
+ xarray/core/dataarray.py:4569: error: Argument "pad_width" to "pad" of "Dataset" has incompatible type "Optional[Mapping[Any, Union[int, Tuple[int, int]]]]"; expected "Mapping[Any, Union[int, Tuple[int, int]]]"  [arg-type]
+ xarray/core/dataarray.py:4670: error: Argument "skipna" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4672: error: Argument "keep_attrs" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4766: error: Argument "skipna" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4768: error: Argument "keep_attrs" to "_calc_idxminmax" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 2 to "argmin" of "Variable" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 3 to "argmin" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4870: error: Argument 4 to "argmin" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 2 to "argmax" of "Variable" has incompatible type "Optional[int]"; expected "int"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 3 to "argmax" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/dataarray.py:4975: error: Argument 4 to "argmax" of "Variable" has incompatible type "Optional[bool]"; expected "bool"  [arg-type]
+ xarray/core/coordinates.py:82: error: Incompatible default for argument "ordered_dims" (default has type "None", argument has type "Sequence[Hashable]")  [assignment]
+ xarray/core/concat.py:569: error: Argument 3 to "concat" of "Index" has incompatible type "Optional[Iterable[Iterable[int]]]"; expected "Iterable[Iterable[int]]"  [arg-type]
+ xarray/core/computation.py:849: error: Incompatible default for argument "input_core_dims" (default has type "None", argument has type "Sequence[Sequence[Any]]")  [assignment]
+ xarray/core/computation.py:2000: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/computation.py:2002: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/alignment.py:137: error: Incompatible default for argument "indexes" (default has type "None", argument has type "Mapping[Any, Any]")  [assignment]
+ xarray/core/alignment.py:140: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/alignment.py:854: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/alignment.py:893: error: Incompatible default for argument "method" (default has type "None", argument has type "str")  [assignment]
+ xarray/core/accessor_str.py:114: error: Incompatible default for argument "output_sizes" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/accessor_str.py:224: error: Incompatible default for argument "output_sizes" (default has type "None", argument has type "Mapping[Any, int]")  [assignment]
+ xarray/core/accessor_str.py:852: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1099: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1172: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1533: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1605: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1750: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/accessor_str.py:1923: error: Incompatible default for argument "case" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/parallel.py:168: error: Incompatible default for argument "kwargs" (default has type "None", argument has type "Mapping[str, Any]")  [assignment]
+ xarray/core/combine.py:672: error: Incompatible default for argument "datasets" (default has type "None", argument has type "Iterable[Dataset]")  [assignment]
+ xarray/core/weighted.py:316: error: Incompatible default for argument "skipna" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/weighted.py:520: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/rolling.py:1000: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/rolling.py:1031: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/rolling.py:1086: error: Incompatible default for argument "keep_attrs" (default has type "None", argument has type "bool")  [assignment]
+ xarray/core/resampl

... (truncated 806 lines) ...

github-actions[bot] avatar Aug 25 '22 00:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

kornia (https://github.com/kornia/kornia)
+ kornia/utils/helpers.py:31: error: Incompatible default for argument "func" (default has type "None", argument has type "Callable[..., Any]")  [assignment]
+ kornia/feature/adalam/adalam.py:90: error: Incompatible default for argument "custom_config" (default has type "None", argument has type "Dict[Any, Any]")  [assignment]
+ kornia/feature/adalam/adalam.py:116: error: Incompatible default for argument "im1shape" (default has type "None", argument has type "Tuple[Any, ...]")  [assignment]
+ kornia/feature/adalam/adalam.py:117: error: Incompatible default for argument "im2shape" (default has type "None", argument has type "Tuple[Any, ...]")  [assignment]
+ kornia/x/trainers.py:73: error: Incompatible default for argument "callbacks" (default has type "None", argument has type "Dict[str, Callable[..., Any]]")  [assignment]
+ kornia/augmentation/_2d/geometric/crop.py:130: error: Incompatible default for argument "padding" (default has type "None", argument has type "List[int]")  [assignment]

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/list_programs.py:51: error: Incompatible default for argument "relative_path" (default has type "None", argument has type "Path")

operator (https://github.com/canonical/operator)
+ ops/framework.py:685: error: Incompatible default for argument "kind" (default has type "None", argument has type "str")
+ ops/framework.py:877: error: Incompatible default for argument "single_event_path" (default has type "None", argument has type "str")
+ ops/testing.py:407: error: Incompatible default for argument "contents" (default has type "None", argument has type "Mapping[str, str]")
- ops/testing.py:866: error: Argument 1 to "set_model_name" of "Harness" has incompatible type "Optional[str]"; expected "str"
- ops/testing.py:867: error: Argument 1 to "set_model_uuid" of "Harness" has incompatible type "Optional[str]"; expected "str"
+ ops/testing.py:857: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ ops/testing.py:857: error: Incompatible default for argument "uuid" (default has type "None", argument has type "str")
+ ops/testing.py:969: error: Incompatible default for argument "key_values" (default has type "None", argument has type "Mapping[str, str]")
+ ops/testing.py:1006: error: Incompatible default for argument "key_values" (default has type "None", argument has type "Mapping[str, Union[str, float, int, bool]]")
- ops/testing.py:1022: error: Argument 1 to "_update_config" of "Harness" has incompatible type "Optional[Mapping[str, Union[str, float, int, bool]]]"; expected "Optional[Mapping[str, str]]"
+ ops/testing.py:1022: error: Argument 1 to "_update_config" of "Harness" has incompatible type "Mapping[str, Union[str, float, int, bool]]"; expected "Mapping[str, str]"
+ ops/testing.py:1609: error: Incompatible default for argument "service" (default has type "None", argument has type "str")
+ ops/testing.py:1792: error: Incompatible default for argument "names" (default has type "None", argument has type "List[str]")
+ ops/testing.py:1827: error: Incompatible default for argument "permissions" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "user_id" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "user" (default has type "None", argument has type "str")
+ ops/testing.py:1828: error: Incompatible default for argument "group_id" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "group" (default has type "None", argument has type "str")
+ ops/testing.py:1847: error: Incompatible default for argument "pattern" (default has type "None", argument has type "str")
+ ops/testing.py:1888: error: Incompatible default for argument "permissions" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "user_id" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "user" (default has type "None", argument has type "str")
+ ops/testing.py:1889: error: Incompatible default for argument "group_id" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "group" (default has type "None", argument has type "str")

pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/connection.py:81: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/connection.py:210: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/execution_context.py:33: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/tracing.py:32: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:91: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:119: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:522: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:541: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:773: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:848: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:857: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:912: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:946: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:979: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:989: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1018: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1066: error: Incompatible default for argument "mediaType" (default has type "None", argument has type "str")
+ pyppeteer/page.py:1137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1248: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1410: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1446: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1507: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1520: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1554: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1582: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1611: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1692: error: Incompatible default for argument "args" (default has type "None", argument has type "List[JSHandle]")
+ pyppeteer/network_manager.py:229: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:430: error: Incompatible default for argument "overrides" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:592: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:20: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:108: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/navigator_watcher.py:114: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/launcher.py:70: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")
+ pyppeteer/launcher.py:239: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:310: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:365: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:58: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:188: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:217: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:261: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:285: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:306: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:326: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:184: error: Argument 4 to "ExecutionContext" has incompatible type "Optional[Frame]"; expected "Frame"
+ pyppeteer/frame_manager.py:218: error: Incompatible default for argument "remoteObject" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:574: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:651: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:665: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:691: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:700: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:709: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:722: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:162: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:209: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:219: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:295: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:53: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:93: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:230: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/browser.py:39: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")
+ pyppeteer/browser.py:142: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")

discord.py (https://github.com/Rapptz/discord.py)
- discord/http.py:536: error: Argument 2 to "ws_connect" of "ClientSession" has incompatible type "**Dict[str, Union[Dict[str, str], float, BasicAuth, None, str]]"; expected "Union[SSLContext, bool, Fingerprint, None]"
+ discord/http.py:536: error: Argument 2 to "ws_connect" of "ClientSession" has incompatible type "**Dict[str, Union[Dict[str, str], float, BasicAuth, None, str]]"; expected "Union[SSLContext, bool, None, Fingerprint]"

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/utilities/filesystem.py:30: error: Incompatible default for argument "ignore_patterns" (default has type "None", argument has type "List[Any]")
+ src/prefect/utilities/filesystem.py:97: error: Incompatible default for argument "relative_to" (default has type "None", argument has type "Union[Path, str]")
+ src/prefect/orion/serializers.py:24: error: Incompatible default for argument "serializer" (default has type "None", argument has type "Serializer[Any]")
+ src/prefect/utilities/collections.py:71: error: Incompatible default for argument "_parent" (default has type "None", argument has type "Tuple[KT, ...]")
+ src/prefect/orion/utilities/schemas.py:41: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/orion/utilities/schemas.py:42: error: Incompatible default for argument "include_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:43: error: Incompatible default for argument "exclude_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:147: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/orion/utilities/schemas.py:148: error: Incompatible default for argument "include_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:149: error: Incompatible default for argument "exclude_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:264: error: Incompatible default for argument "update" (default has type "None", argument has type "Dict[Any, Any]")
- src/prefect/orion/schemas/schedules.py:274: error: Item "datetime" of "Optional[datetime]" has no attribute "in_tz"
+ src/prefect/orion/schemas/schedules.py:107: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:108: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:109: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:138: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
+ src/prefect/orion/schemas/schedules.py:241: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:242: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:243: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:263: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
- src/prefect/orion/schemas/schedules.py:274: error: Item "None" of "Optional[datetime]" has no attribute "in_tz"
+ src/prefect/orion/schemas/schedules.py:274: error: "datetime" has no attribute "in_tz"
- src/prefect/orion/schemas/schedules.py:278: error: Item "datetime" of "Optional[datetime]" has no attribute "subtract"
- src/prefect/orion/schemas/schedules.py:278: error: Item "None" of "Optional[datetime]" has no attribute "subtract"
+ src/prefect/orion/schemas/schedules.py:278: error: "datetime" has no attribute "subtract"
- src/prefect/orion/schemas/schedules.py:281: error: Item "datetime" of "Optional[datetime]" has no attribute "tz"
- src/prefect/orion/schemas/schedules.py:281: error: Item "None" of "Optional[datetime]" has no attribute "tz"
+ src/prefect/orion/schemas/schedules.py:281: error: "datetime" has no attribute "tz"
- src/prefect/orion/schemas/schedules.py:283: error: Item "None" of "Optional[datetime]" has no attribute "year"
- src/prefect/orion/schemas/schedules.py:284: error: Item "None" of "Optional[datetime]" has no attribute "month"
- src/prefect/orion/schemas/schedules.py:285: error: Item "None" of "Optional[datetime]" has no attribute "day"
- src/prefect/orion/schemas/schedules.py:286: error: Item "None" of "Optional[datetime]" has no attribute "hour"
- src/prefect/orion/schemas/schedules.py:287: error: Item "None" of "Optional[datetime]" has no attribute "minute"
- src/prefect/orion/schemas/schedules.py:288: error: Item "None" of "Optional[datetime]" has no attribute "second"
- src/prefect/orion/schemas/schedules.py:289: error: Item "None" of "Optional[datetime]" has no attribute "microsecond"
+ src/prefect/orion/schemas/schedules.py:395: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:396: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:397: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:417: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
+ src/prefect/orion/schemas/states.py:218: error: Incompatible default for argument "update" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/schemas/states.py:271: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/states.py:341: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/states.py:359: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
+ src/prefect/orion/database/alembic_commands.py:46: error: Incompatible default for argument "message" (default has type "None", argument has type "str")
+ src/prefect/orion/api/logs.py:33: error: Incompatible default for argument "logs" (default has type "None", argument has type "LogFilter")
+ src/prefect/orion/api/flows.py:58: error: Incompatible default for argument "flows" (default has type "None", argument has type "FlowFilter")
+ src/prefect/orion/api/flows.py:59: error: Incompatible default for argument "flow_runs" (default has type "None", argument has type "FlowRunFilter")
+ src/prefect/orion/api/flows.py:60: error: Incompatible default for argument "task_runs" (default has type "None", argument has type "TaskRunFilter")
+ src/prefect/orion/api/flows.py:61: error: Incompatible default for argument "deployments" (default has type "None", argument has type "DeploymentFilter")
+ src/prefect/orion/api/flows.py:112: error: Incompatible default for argument "flows" (default has type "None", argument has type "FlowFilter")
+ src/prefect/orion/api/flows.py:113: error: Incompatible default for argument "flow_runs" (default has type "None", argument has type "FlowRunFilter")
+ src/prefect/orion/api/flows.py:114: error: Incompatible default for argument "task_runs" (default has type "None", argument has type "TaskRunFilter")
+ src/prefect/orion/api/flows.py:115: error: Incompatible default for argument "deployments" (default has type "None", argument has type "DeploymentFilter")
+ src/prefect/orion/api/flow_run_notification_policies.py:90: error: Incompatible default for argument "flow_run_notification_policy_filter" (default has type "None", argument has type "FlowRunNotificationPolicyFilter")
+ src/prefect/logging/loggers.py:30: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/logging/loggers.py:50: error: Incompatible default for argument "context" (default has type "None", argument has type "RunContext")
+ src/prefect/logging/loggers.py:87: error: Argument "flow_run" to "task_run_logger" has incompatible type "Optional[FlowRun]"; expected "FlowRun"
+ src/prefect/logging/loggers.py:88: error: Argument "flow" to "task_run_logger" has incompatible type "Optional[Flow[Any, Any]]"; expected "Flow[Any, Any]"
+ src/prefect/logging/loggers.py:101: error: Incompatible default for argument "flow" (default has type "None", argument has type "Flow[Any, Any]")
+ src/prefect/logging/loggers.py:125: error: Incompatible default for argument "task" (default has type "None", argument has type "Task[Any, Any]")
+ src/prefect/logging/loggers.py:126: error: Incompatible default for argument "flow_run" (default has type "None", argument has type "FlowRun")
+ src/prefect/logging/loggers.py:127: error: Incompatible default for argument "flow" (default has type "None", argument has type "Flow[Any, Any]")
+ src/prefect/utilities/importtools.py:63: error: Incompatible default for argument "text" (default has type "None", argument has type "Union[str, bytes]")
+ src/prefect/orion/schemas/core.py:79: error: Incompatible default for argument "type" (default has type "None", argument has type "str")
+ src/prefect/orion/schemas/core.py:79: error: Incompatible default for argument "config" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/database/orm_models.py:1042: error: Incompatible default for argument "base_model_mixins" (default has type "None", argument has type "List[Any]")
+ src/prefect/docker.py:39: error: Incompatible default for argument "prefect_version" (default has type "None", argument has type "str")
+ src/prefect/docker.py:39: error: Incompatible default for argument "python_version" (default has type "None", argument has type "str")
+ src/prefect/docker.py:39: error: Incompatible default for argument "flavor" (default has type "None", argument has type "str")
+ src/prefect/docker.py:124: error: Incompatible default for argument "platform" (default has type "None", argument has type "str")
+ src/prefect/docker.py:187: error: Incompatible default for argument "base_directory" (default has type "None", argument has type "Path")
+ src/prefect/docker.py:188: error: Incompatible default for argument "platform" (default has type "None", argument has type "str")
+ src/prefect/docker.py:189: error: Incompatible default for argument "context" (default has type "None", argument has type "Path")
+ src/prefect/docker.py:298: error: Argument "platform" to "build_image" has incompatible type "Optional[str]"; expected "str"
+ src/prefect/utilities/pydantic.py:49: error: Incompatible default for argument "__model_cls" (default has type "None", argument has type "Type[M]")
+ src/prefect/settings.py:87: error: Incompatible default for argument "value_callback" (default has type "None", argument has type "Callable[[Settings, T], T]")
- src/prefect/settings.py:355: error: Argument "value_callback" to "Setting" has incompatible type "Callable[[Settings, str], List[str]]"; expected "Optional[Callable[[Settings, str], str]]"
+ src/prefect/settings.py:355: error: Argument "value_callback" to "Setting" has incompatible type "Callable[[Settings, str], List[str]]"; expected "Callable[[Settings, str], str]"
+ src/prefect/settings.py:664: error: Incompatible default for argument "updates" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:665: error: Incompatible default for argument "set_defaults" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:666: error: Incompatible default for argument "restore_defaults" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:695: error: Incompatible default for argument "include" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:807: error: Incompatible default for argument "updates" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:808: error: Incompatible default for argument "set_defaults" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:809: error: Incompatible default for argument "restore_defaults" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:932: error: Incompatible default for argument "source" (default has type "None", argument has type "Path")
+ src/prefect/settings.py:1084: error: Argument "source" to "update_profile" of "ProfilesCollection" has incompatible type "Optional[Path]"; expected "Path"
+ src/prefect/filesystems.py:44: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:44: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:54: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:54: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:60: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:60: error: Incompatible default for argument "to_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:60: error: Incompatible default for argument "ignore_file" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:114: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:114: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:145: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:145: error: Incompatible default for argument "to_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:145: error: Incompatible default for argument "ignore_file" (default has type "None", argument has type "str")
- src/prefect/filesystems.py:122: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:122: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:125: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:130: error: Argument 1 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:130: error: Argument 2 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:155: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:155: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:158: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:161: error: Argument 1 to "_get_ignore_func" of "LocalFileSystem" has incompatible type "Optional[str]"; expected "str"
- src/prefect/filesystems.py:171: error: Argument 1 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:171: error: Argument 2 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:294: note:          def put_directory(self, local_path: Optional[str] = ..., to_path: Optional[str] = ..., ignore_file: Optional[str] = ...) -> Coroutine[

... (truncated 800 lines) ...

github-actions[bot] avatar Aug 25 '22 19:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

kornia (https://github.com/kornia/kornia)
+ kornia/utils/helpers.py:31: error: Incompatible default for argument "func" (default has type "None", argument has type "Callable[..., Any]")  [assignment]
+ kornia/feature/sold2/sold2_detector.py:65: error: Incompatible default for argument "config" (default has type "None", argument has type "Dict[Any, Any]")  [assignment]
+ kornia/feature/adalam/adalam.py:94: error: Incompatible default for argument "custom_config" (default has type "None", argument has type "Dict[Any, Any]")  [assignment]
+ kornia/feature/adalam/adalam.py:120: error: Incompatible default for argument "im1shape" (default has type "None", argument has type "Tuple[Any, ...]")  [assignment]
+ kornia/feature/adalam/adalam.py:121: error: Incompatible default for argument "im2shape" (default has type "None", argument has type "Tuple[Any, ...]")  [assignment]
+ kornia/x/trainers.py:73: error: Incompatible default for argument "callbacks" (default has type "None", argument has type "Dict[str, Callable[..., Any]]")  [assignment]
+ kornia/augmentation/_2d/geometric/crop.py:130: error: Incompatible default for argument "padding" (default has type "None", argument has type "List[int]")  [assignment]

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/list_programs.py:51: error: Incompatible default for argument "relative_path" (default has type "None", argument has type "Path")

operator (https://github.com/canonical/operator)
+ ops/framework.py:685: error: Incompatible default for argument "kind" (default has type "None", argument has type "str")
+ ops/framework.py:877: error: Incompatible default for argument "single_event_path" (default has type "None", argument has type "str")
+ ops/testing.py:407: error: Incompatible default for argument "contents" (default has type "None", argument has type "Mapping[str, str]")
- ops/testing.py:866: error: Argument 1 to "set_model_name" of "Harness" has incompatible type "Optional[str]"; expected "str"
- ops/testing.py:867: error: Argument 1 to "set_model_uuid" of "Harness" has incompatible type "Optional[str]"; expected "str"
+ ops/testing.py:857: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ ops/testing.py:857: error: Incompatible default for argument "uuid" (default has type "None", argument has type "str")
+ ops/testing.py:969: error: Incompatible default for argument "key_values" (default has type "None", argument has type "Mapping[str, str]")
+ ops/testing.py:1006: error: Incompatible default for argument "key_values" (default has type "None", argument has type "Mapping[str, Union[str, float, int, bool]]")
- ops/testing.py:1022: error: Argument 1 to "_update_config" of "Harness" has incompatible type "Optional[Mapping[str, Union[str, float, int, bool]]]"; expected "Optional[Mapping[str, str]]"
+ ops/testing.py:1022: error: Argument 1 to "_update_config" of "Harness" has incompatible type "Mapping[str, Union[str, float, int, bool]]"; expected "Mapping[str, str]"
+ ops/testing.py:1609: error: Incompatible default for argument "service" (default has type "None", argument has type "str")
+ ops/testing.py:1792: error: Incompatible default for argument "names" (default has type "None", argument has type "List[str]")
+ ops/testing.py:1827: error: Incompatible default for argument "permissions" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "user_id" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "user" (default has type "None", argument has type "str")
+ ops/testing.py:1828: error: Incompatible default for argument "group_id" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "group" (default has type "None", argument has type "str")
+ ops/testing.py:1847: error: Incompatible default for argument "pattern" (default has type "None", argument has type "str")
+ ops/testing.py:1888: error: Incompatible default for argument "permissions" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "user_id" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "user" (default has type "None", argument has type "str")
+ ops/testing.py:1889: error: Incompatible default for argument "group_id" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "group" (default has type "None", argument has type "str")

rotki (https://github.com/rotki/rotki)
+ rotkehlchen/tests/utils/mock.py:13: error: Incompatible default for argument "headers" (default has type "None", argument has type "Dict[str, Any]")
+ rotkehlchen/db/drivers/gevent.py:104: error: Incompatible default for argument "size" (default has type "None", argument has type "int")
+ rotkehlchen/db/drivers/gevent.py:108: error: Statement is unreachable
+ rotkehlchen/args.py:23: error: Argument 4 of "__call__" is incompatible with supertype "Action"; supertype defines the argument type as "Optional[str]"
+ rotkehlchen/args.py:23: note: This violates the Liskov substitution principle
+ rotkehlchen/args.py:23: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
+ rotkehlchen/args.py:28: error: Incompatible default for argument "option_string" (default has type "None", argument has type "str")
+ rotkehlchen/globaldb/handler.py:82: error: Incompatible default for argument "data_dir" (default has type "None", argument has type "Path")
+ rotkehlchen/globaldb/handler.py:83: error: Incompatible default for argument "sql_vm_instructions_cb" (default has type "None", argument has type "int")
+ rotkehlchen/assets/utils.py:51: error: Incompatible default for argument "ethereum_manager" (default has type "None", argument has type "EthereumManager")
+ rotkehlchen/inquirer.py:261: error: Incompatible default for argument "data_dir" (default has type "None", argument has type "Path")
+ rotkehlchen/inquirer.py:262: error: Incompatible default for argument "cryptocompare" (default has type "None", argument has type "Cryptocompare")
+ rotkehlchen/inquirer.py:263: error: Incompatible default for argument "coingecko" (default has type "None", argument has type "Coingecko")
+ rotkehlchen/history/price.py:81: error: Incompatible default for argument "data_directory" (default has type "None", argument has type "Path")
+ rotkehlchen/history/price.py:82: error: Incompatible default for argument "cryptocompare" (default has type "None", argument has type "Cryptocompare")
+ rotkehlchen/history/price.py:83: error: Incompatible default for argument "coingecko" (default has type "None", argument has type "Coingecko")
+ rotkehlchen/exchanges/binance.py:1192: error: Incompatible default for argument "additional_options" (default has type "None", argument has type "Dict[Any, Any]")
+ rotkehlchen/db/dbhandler.py:1791: error: Incompatible default for argument "location" (default has type "None", argument has type "Location")
+ rotkehlchen/db/dbhandler.py:1792: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ rotkehlchen/externalapis/covalent.py:95: error: Incompatible default for argument "address" (default has type "None", argument has type "str")
+ rotkehlchen/exchanges/coinbasepro.py:396: error: Incompatible default for argument "query_options" (default has type "None", argument has type "Dict[str, Any]")
+ rotkehlchen/exchanges/coinbasepro.py:400: error: Statement is unreachable
+ rotkehlchen/api/v1/schemas.py:1762: error: Incompatible default for argument "coingecko" (default has type "None", argument has type "Coingecko")
+ rotkehlchen/api/v1/schemas.py:1763: error: Incompatible default for argument "cryptocompare" (default has type "None", argument has type "Cryptocompare")
+ rotkehlchen/api/v1/schemas.py:1800: error: Unused "type: ignore" comment
+ rotkehlchen/rotkehlchen.py:660: error: Incompatible default for argument "timestamp" (default has type "None", argument has type "Timestamp")
+ rotkehlchen/tests/utils/blockchain.py:78: error: Incompatible default for argument "expected_liabilities" (default has type "None", argument has type "Dict[EvmToken, List[str]]")
+ rotkehlchen/api/server.py:363: error: Incompatible default for argument "cors_domain_list" (default has type "None", argument has type "List[str]")
+ rotkehlchen/tests/utils/api.py:21: error: Incompatible default for argument "pid" (default has type "None", argument has type "int")
+ rotkehlchen/tests/utils/api.py:24: error: Statement is unreachable

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/utilities/filesystem.py:30: error: Incompatible default for argument "ignore_patterns" (default has type "None", argument has type "List[Any]")
+ src/prefect/utilities/filesystem.py:97: error: Incompatible default for argument "relative_to" (default has type "None", argument has type "Union[Path, str]")
+ src/prefect/orion/serializers.py:24: error: Incompatible default for argument "serializer" (default has type "None", argument has type "Serializer[Any]")
+ src/prefect/utilities/collections.py:71: error: Incompatible default for argument "_parent" (default has type "None", argument has type "Tuple[KT, ...]")
+ src/prefect/orion/utilities/schemas.py:42: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/orion/utilities/schemas.py:43: error: Incompatible default for argument "include_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:44: error: Incompatible default for argument "exclude_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:163: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/orion/utilities/schemas.py:164: error: Incompatible default for argument "include_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:165: error: Incompatible default for argument "exclude_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:280: error: Incompatible default for argument "update" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/schemas/states.py:216: error: Incompatible default for argument "update" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/schemas/states.py:269: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/states.py:339: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/states.py:357: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
- src/prefect/orion/schemas/schedules.py:274: error: Item "datetime" of "Optional[datetime]" has no attribute "in_tz"
+ src/prefect/orion/schemas/schedules.py:107: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:108: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:109: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:138: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
+ src/prefect/orion/schemas/schedules.py:241: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:242: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:243: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:263: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
- src/prefect/orion/schemas/schedules.py:274: error: Item "None" of "Optional[datetime]" has no attribute "in_tz"
+ src/prefect/orion/schemas/schedules.py:274: error: "datetime" has no attribute "in_tz"
- src/prefect/orion/schemas/schedules.py:278: error: Item "datetime" of "Optional[datetime]" has no attribute "subtract"
- src/prefect/orion/schemas/schedules.py:278: error: Item "None" of "Optional[datetime]" has no attribute "subtract"
+ src/prefect/orion/schemas/schedules.py:278: error: "datetime" has no attribute "subtract"
- src/prefect/orion/schemas/schedules.py:281: error: Item "datetime" of "Optional[datetime]" has no attribute "tz"
- src/prefect/orion/schemas/schedules.py:281: error: Item "None" of "Optional[datetime]" has no attribute "tz"
+ src/prefect/orion/schemas/schedules.py:281: error: "datetime" has no attribute "tz"
- src/prefect/orion/schemas/schedules.py:283: error: Item "None" of "Optional[datetime]" has no attribute "year"
- src/prefect/orion/schemas/schedules.py:284: error: Item "None" of "Optional[datetime]" has no attribute "month"
- src/prefect/orion/schemas/schedules.py:285: error: Item "None" of "Optional[datetime]" has no attribute "day"
- src/prefect/orion/schemas/schedules.py:286: error: Item "None" of "Optional[datetime]" has no attribute "hour"
- src/prefect/orion/schemas/schedules.py:287: error: Item "None" of "Optional[datetime]" has no attribute "minute"
- src/prefect/orion/schemas/schedules.py:288: error: Item "None" of "Optional[datetime]" has no attribute "second"
- src/prefect/orion/schemas/schedules.py:289: error: Item "None" of "Optional[datetime]" has no attribute "microsecond"
+ src/prefect/orion/schemas/schedules.py:395: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:396: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:397: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:417: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
+ src/prefect/orion/database/alembic_commands.py:46: error: Incompatible default for argument "message" (default has type "None", argument has type "str")
+ src/prefect/logging/loggers.py:31: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/logging/loggers.py:55: error: Incompatible default for argument "context" (default has type "None", argument has type "RunContext")
+ src/prefect/logging/loggers.py:95: error: Argument "flow_run" to "task_run_logger" has incompatible type "Optional[FlowRun]"; expected "FlowRun"
+ src/prefect/logging/loggers.py:96: error: Argument "flow" to "task_run_logger" has incompatible type "Optional[Flow[Any, Any]]"; expected "Flow[Any, Any]"
+ src/prefect/logging/loggers.py:114: error: Incompatible default for argument "flow" (default has type "None", argument has type "Flow[Any, Any]")
+ src/prefect/logging/loggers.py:138: error: Incompatible default for argument "task" (default has type "None", argument has type "Task[Any, Any]")
+ src/prefect/logging/loggers.py:139: error: Incompatible default for argument "flow_run" (default has type "None", argument has type "FlowRun")
+ src/prefect/logging/loggers.py:140: error: Incompatible default for argument "flow" (default has type "None", argument has type "Flow[Any, Any]")
+ src/prefect/utilities/importtools.py:63: error: Incompatible default for argument "text" (default has type "None", argument has type "Union[str, bytes]")
+ src/prefect/orion/schemas/core.py:81: error: Incompatible default for argument "type" (default has type "None", argument has type "str")
+ src/prefect/orion/schemas/core.py:81: error: Incompatible default for argument "config" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/database/orm_models.py:1048: error: Incompatible default for argument "base_model_mixins" (default has type "None", argument has type "List[Any]")
+ src/prefect/docker.py:40: error: Incompatible default for argument "prefect_version" (default has type "None", argument has type "str")
+ src/prefect/docker.py:40: error: Incompatible default for argument "python_version" (default has type "None", argument has type "str")
+ src/prefect/docker.py:40: error: Incompatible default for argument "flavor" (default has type "None", argument has type "str")
+ src/prefect/docker.py:125: error: Incompatible default for argument "platform" (default has type "None", argument has type "str")
+ src/prefect/docker.py:189: error: Incompatible default for argument "base_directory" (default has type "None", argument has type "Path")
+ src/prefect/docker.py:190: error: Incompatible default for argument "platform" (default has type "None", argument has type "str")
+ src/prefect/docker.py:191: error: Incompatible default for argument "context" (default has type "None", argument has type "Path")
+ src/prefect/docker.py:300: error: Argument "platform" to "build_image" has incompatible type "Optional[str]"; expected "str"
+ src/prefect/utilities/pydantic.py:49: error: Incompatible default for argument "__model_cls" (default has type "None", argument has type "Type[M]")
+ src/prefect/settings.py:87: error: Incompatible default for argument "value_callback" (default has type "None", argument has type "Callable[[Settings, T], T]")
- src/prefect/settings.py:355: error: Argument "value_callback" to "Setting" has incompatible type "Callable[[Settings, str], List[str]]"; expected "Optional[Callable[[Settings, str], str]]"
+ src/prefect/settings.py:355: error: Argument "value_callback" to "Setting" has incompatible type "Callable[[Settings, str], List[str]]"; expected "Callable[[Settings, str], str]"
+ src/prefect/settings.py:664: error: Incompatible default for argument "updates" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:665: error: Incompatible default for argument "set_defaults" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:666: error: Incompatible default for argument "restore_defaults" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:695: error: Incompatible default for argument "include" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:807: error: Incompatible default for argument "updates" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:808: error: Incompatible default for argument "set_defaults" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:809: error: Incompatible default for argument "restore_defaults" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:932: error: Incompatible default for argument "source" (default has type "None", argument has type "Path")
+ src/prefect/settings.py:1084: error: Argument "source" to "update_profile" of "ProfilesCollection" has incompatible type "Optional[Path]"; expected "Path"
+ src/prefect/filesystems.py:48: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:48: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:58: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:58: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:64: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:64: error: Incompatible default for argument "to_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:64: error: Incompatible default for argument "ignore_file" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:118: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:118: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:149: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:149: error: Incompatible default for argument "to_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:149: error: Incompatible default for argument "ignore_file" (default has type "None", argument has type "str")
- src/prefect/filesystems.py:126: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:126: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:129: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:134: error: Argument 1 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:134: error: Argument 2 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:159: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:159: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:162: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:165: error: Argument 1 to "_get_ignore_func" of "LocalFileSystem" has incompatible type "Optional[str]"; expected "str"
- src/prefect/filesystems.py:175: error: Argument 1 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:175: error: Argument 2 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:298: note:          def put_directory(self, local_path: Optional[str] = ..., to_path: Optional[str] = ..., ignore_file: Optional[str] = ...) -> Coroutine[Any, Any, None]
+ src/prefect/filesystems.py:298: note:          def put_directory(self, local_path: str = ..., to_path: str = ..., ignore_file: str = ...) -> Coroutine[Any, Any, None]
- src/prefect/filesystems.py:775: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
+ src/prefect/filesystems.py:757: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:757: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/blocks/kubernetes.py:49: error: Incompatible default for argument "path" (default has type "None", argument has type "Path")
+ src/prefect/blocks/kubernetes.py:49: error: Incompatible default for argument "context_name" (default has type "None", argument has type "str")
+ src/prefect/orion/database/configurations.py:30: error: Incompatible default for argument "echo" (default has type "None", argument has type "bool")
+ src/prefect/orion/database/configurations.py:31: error: Incompatible default for argument "timeout" (default has type "None", argument has type "float")
+ src/prefect/orion/database/configurations.py:32: error: Incompatible default for argument "connection_timeout" (default has type "None", argument has type "float")
- src/prefect/orion/database/dependencies.py:230: error: Argument "tmp_database_config" to "temporary_database_config" has incompatible type "Optional[BaseDatabaseConfiguration]"; expected "BaseDatabaseConfiguration"
- src/prefect/orion/database/dependencies.py:232: error: Argument "tmp_queries" to "temporary_query_components" has incompatible type "Optional[BaseQueryComponents]"; expected "BaseQueryComponents"
- src/prefect/orion/database/dependencies.py:233: error: Argument "tmp_orm_config" to "temporary_orm_config" has incompatible type "Optional[BaseORMConfiguration]"; expected "BaseORMConfiguration"
+ src/prefect/orion/database/dependencies.py:206: error: Incompatible default for argument "tmp_database_config" (default has type "None", argument has type "BaseDatabaseConfiguration")
+ src/prefect/orion/database/dependencies.py:207: error: Incompatible default for argument "tmp_queries" (default has type "None", argument has type "BaseQueryComponents")
+ src/prefect/orion/database/dependencies.py:208: error: Incompatible default for argument "tmp_orm_config" (default has type "None", argument has type "BaseORMConfiguration")
+ src/prefect/orion/database/dependencies.py:209: error: Incompatible default for argument "tmp_interface_class" (default has type "None", argument has type "type")
- src/prefect/orion/database/dependencies.py:235: error: Argument "tmp_interface_class" to "temporary_interface_class" has incompatible type "Optional[type]"; expected "BaseORMConfiguration"
+ src/prefect/orion/database/dependencies.py:235: error: Argument "tmp_interface_class" to "temporary_interface_class" has incompatible type "type"; expected "BaseORMConfiguration"
+ src/prefect/orion/services/loop_service.py:26: error: Incompatible default for argument "loop_seconds" (default has type "None", argument has type "float")
+ src/prefect/orion/models/work_queues.py:90: error: Incompatible default for argument "offset" (default has type "None", argument has type "int")
+ src/prefect/orion/models/work_queues.py:91: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")
+ src/prefect/orion/models/work_queues.py:171: error: Incompatible default for argument "scheduled_before" (default has type "None", argument has type "datetime")
+ src/prefect/orion/models/work_queues.py:172: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")
+ src/prefect/orion/models/saved_searches.py:102: error: Incompatible default for argument "offset" (default has type "None", argument has type "int")
+ src/prefect/orion/models/saved_searches.py:103: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")
+ src/prefect/orion/models/logs.py:49: error: Incompatible default for argument "offset" (default has type "None", argument has type "int")
+ src/prefect/orion/models/logs.py:50: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")
+ src/prefect/orion/models/flows.py:119: error: Incompatible default for argument "flow_filter" (default has type "None", argument has type "FlowFilter")
+ src/prefect/orion/models/flows.py:120: error: Incompatible default for argument "flow_run_filter" (default has type "None", argument has type "FlowRunFilter")
+ src/prefect/orion/models/flows.py:121: error: Incompatible default for argument "task_run_filter" (default has type "None", argument has type "TaskRunFilter")
+ src/prefect/orion/models/flows.py:122: error: Incompatible default for argument "deployment_filter" (default has type "None", argument has type "DeploymentFilter")
+ src/prefect/orion/models/flows.py:159: error: Incompatible default for argument "flow_filter" (default has type "None", argument has type "FlowFilter")
+ src/prefect/orion/models/flows.py:160: error: Incompatible default for argument "flow_run_filter" (default has type "None", argument has type "FlowRunFilter")
+ src/prefect/orion/models/flows.py:161: error: Incompatible default for argument "task_run_filter" (default has type "None", argument has type "TaskRunFilter")
+ src/prefect/orion/models/flows.py:162: error: Incompatible default for argument "deployment_filter" (default has type "None", argument has type "DeploymentFilter")
+ src/prefect/orion/models/flows.py:164: error: Incompatible default for argument "offset" (default has type "None", argument has type "int")
+ src/prefect/orion/models/flows.py:165: error: Incompatible default for argument "limit" (default has type "None", argument has type "int")
+ src/prefect/orion/models/flows.py:208: error: Incompatible default for argument "flow_filter" (default has type "None", argument has type "FlowFilter")
+ src/prefect/orion/models/flows.py:209: error: Incompatible default for argument "flow_run_filter" (default has type "None", argument has type "FlowRunFilter")
+ src/prefect/orion/models/flows.py:210: error: Incompatible default for argument "task_run_filter" (default has type "None", argument has type "TaskRunFilter")
+ src/prefect/orion/models/flows.py:211: error: Incompatible default for argument "deployment_filter" (default has type "None", argument has type "DeploymentFilter")
+ src/prefect/orion/models/flow_run_notification_policies.py:76: error: Incompatible default for argument "flow_run_notification_policy_filter" (default has type "None", argument has type "FlowRunNotificationPolicyFilter")
+ src/prefe

... (truncated 803 lines) ...

github-actions[bot] avatar Sep 08 '22 04:09 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

kornia (https://github.com/kornia/kornia)
+ kornia/utils/helpers.py:31: error: Incompatible default for argument "func" (default has type "None", argument has type "Callable[..., Any]")  [assignment]
+ kornia/feature/sold2/sold2_detector.py:65: error: Incompatible default for argument "config" (default has type "None", argument has type "Dict[Any, Any]")  [assignment]
+ kornia/feature/adalam/adalam.py:94: error: Incompatible default for argument "custom_config" (default has type "None", argument has type "Dict[Any, Any]")  [assignment]
+ kornia/feature/adalam/adalam.py:120: error: Incompatible default for argument "im1shape" (default has type "None", argument has type "Tuple[Any, ...]")  [assignment]
+ kornia/feature/adalam/adalam.py:121: error: Incompatible default for argument "im2shape" (default has type "None", argument has type "Tuple[Any, ...]")  [assignment]
+ kornia/x/trainers.py:73: error: Incompatible default for argument "callbacks" (default has type "None", argument has type "Dict[str, Callable[..., Any]]")  [assignment]
+ kornia/augmentation/_2d/geometric/crop.py:130: error: Incompatible default for argument "padding" (default has type "None", argument has type "List[int]")  [assignment]

operator (https://github.com/canonical/operator)
+ ops/framework.py:685: error: Incompatible default for argument "kind" (default has type "None", argument has type "str")
+ ops/framework.py:877: error: Incompatible default for argument "single_event_path" (default has type "None", argument has type "str")
+ ops/testing.py:407: error: Incompatible default for argument "contents" (default has type "None", argument has type "Mapping[str, str]")
- ops/testing.py:866: error: Argument 1 to "set_model_name" of "Harness" has incompatible type "Optional[str]"; expected "str"
- ops/testing.py:867: error: Argument 1 to "set_model_uuid" of "Harness" has incompatible type "Optional[str]"; expected "str"
+ ops/testing.py:857: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ ops/testing.py:857: error: Incompatible default for argument "uuid" (default has type "None", argument has type "str")
+ ops/testing.py:969: error: Incompatible default for argument "key_values" (default has type "None", argument has type "Mapping[str, str]")
+ ops/testing.py:1006: error: Incompatible default for argument "key_values" (default has type "None", argument has type "Mapping[str, Union[str, float, int, bool]]")
- ops/testing.py:1022: error: Argument 1 to "_update_config" of "Harness" has incompatible type "Optional[Mapping[str, Union[str, float, int, bool]]]"; expected "Optional[Mapping[str, str]]"
+ ops/testing.py:1022: error: Argument 1 to "_update_config" of "Harness" has incompatible type "Mapping[str, Union[str, float, int, bool]]"; expected "Mapping[str, str]"
+ ops/testing.py:1609: error: Incompatible default for argument "service" (default has type "None", argument has type "str")
+ ops/testing.py:1792: error: Incompatible default for argument "names" (default has type "None", argument has type "List[str]")
+ ops/testing.py:1827: error: Incompatible default for argument "permissions" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "user_id" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "user" (default has type "None", argument has type "str")
+ ops/testing.py:1828: error: Incompatible default for argument "group_id" (default has type "None", argument has type "int")
+ ops/testing.py:1828: error: Incompatible default for argument "group" (default has type "None", argument has type "str")
+ ops/testing.py:1847: error: Incompatible default for argument "pattern" (default has type "None", argument has type "str")
+ ops/testing.py:1888: error: Incompatible default for argument "permissions" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "user_id" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "user" (default has type "None", argument has type "str")
+ ops/testing.py:1889: error: Incompatible default for argument "group_id" (default has type "None", argument has type "int")
+ ops/testing.py:1889: error: Incompatible default for argument "group" (default has type "None", argument has type "str")

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/list_programs.py:51: error: Incompatible default for argument "relative_path" (default has type "None", argument has type "Path")

pyppeteer (https://github.com/pyppeteer/pyppeteer)
+ pyppeteer/connection.py:81: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/connection.py:210: error: Incompatible default for argument "params" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/execution_context.py:33: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/tracing.py:32: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:91: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:119: error: Incompatible default for argument "screenshotTaskQueue" (default has type "None", argument has type "List[Any]")
+ pyppeteer/page.py:522: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:541: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:773: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:848: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:857: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:912: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:946: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:979: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:989: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1018: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1066: error: Incompatible default for argument "mediaType" (default has type "None", argument has type "str")
+ pyppeteer/page.py:1137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1248: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1410: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1446: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1507: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1520: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1554: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1582: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1611: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/page.py:1692: error: Incompatible default for argument "args" (default has type "None", argument has type "List[JSHandle]")
+ pyppeteer/network_manager.py:229: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:430: error: Incompatible default for argument "overrides" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/network_manager.py:592: error: Incompatible default for argument "securityDetails" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:20: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/navigator_watcher.py:108: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/navigator_watcher.py:114: error: Incompatible default for argument "frame" (default has type "None", argument has type "Frame")
+ pyppeteer/launcher.py:70: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[str, Any]")
+ pyppeteer/launcher.py:239: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:310: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/launcher.py:365: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:58: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:188: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:217: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:261: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:285: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:306: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/input.py:326: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:184: error: Argument 4 to "ExecutionContext" has incompatible type "Optional[Frame]"; expected "Frame"
+ pyppeteer/frame_manager.py:218: error: Incompatible default for argument "remoteObject" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:574: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:651: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:665: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:691: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:700: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:709: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/frame_manager.py:722: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:162: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:209: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:219: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/element_handle.py:295: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:53: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:93: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:137: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/coverage.py:230: error: Incompatible default for argument "options" (default has type "None", argument has type "Dict[Any, Any]")
+ pyppeteer/browser.py:39: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")
+ pyppeteer/browser.py:142: error: Incompatible default for argument "closeCallback" (default has type "None", argument has type "Callable[[], Awaitable[None]]")

discord.py (https://github.com/Rapptz/discord.py)
- discord/http.py:536: error: Argument 2 to "ws_connect" of "ClientSession" has incompatible type "**Dict[str, Union[Dict[str, str], float, BasicAuth, None, str]]"; expected "Union[SSLContext, bool, Fingerprint, None]"
+ discord/http.py:536: error: Argument 2 to "ws_connect" of "ClientSession" has incompatible type "**Dict[str, Union[Dict[str, str], float, BasicAuth, None, str]]"; expected "Union[SSLContext, bool, None, Fingerprint]"

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/utilities/filesystem.py:30: error: Incompatible default for argument "ignore_patterns" (default has type "None", argument has type "List[Any]")
+ src/prefect/utilities/filesystem.py:97: error: Incompatible default for argument "relative_to" (default has type "None", argument has type "Union[Path, str]")
+ src/prefect/orion/serializers.py:24: error: Incompatible default for argument "serializer" (default has type "None", argument has type "Serializer[Any]")
+ src/prefect/utilities/collections.py:71: error: Incompatible default for argument "_parent" (default has type "None", argument has type "Tuple[KT, ...]")
+ src/prefect/orion/utilities/schemas.py:42: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/orion/utilities/schemas.py:43: error: Incompatible default for argument "include_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:44: error: Incompatible default for argument "exclude_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:163: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/orion/utilities/schemas.py:164: error: Incompatible default for argument "include_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:165: error: Incompatible default for argument "exclude_fields" (default has type "None", argument has type "List[str]")
+ src/prefect/orion/utilities/schemas.py:280: error: Incompatible default for argument "update" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/schemas/states.py:216: error: Incompatible default for argument "update" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/schemas/states.py:269: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/states.py:339: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/states.py:357: error: Incompatible default for argument "scheduled_time" (default has type "None", argument has type "datetime")
- src/prefect/orion/schemas/schedules.py:274: error: Item "datetime" of "Optional[datetime]" has no attribute "in_tz"
+ src/prefect/orion/schemas/schedules.py:107: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:108: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:109: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:138: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
+ src/prefect/orion/schemas/schedules.py:241: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:242: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:243: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:263: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
- src/prefect/orion/schemas/schedules.py:274: error: Item "None" of "Optional[datetime]" has no attribute "in_tz"
+ src/prefect/orion/schemas/schedules.py:274: error: "datetime" has no attribute "in_tz"
- src/prefect/orion/schemas/schedules.py:278: error: Item "datetime" of "Optional[datetime]" has no attribute "subtract"
- src/prefect/orion/schemas/schedules.py:278: error: Item "None" of "Optional[datetime]" has no attribute "subtract"
+ src/prefect/orion/schemas/schedules.py:278: error: "datetime" has no attribute "subtract"
- src/prefect/orion/schemas/schedules.py:281: error: Item "datetime" of "Optional[datetime]" has no attribute "tz"
- src/prefect/orion/schemas/schedules.py:281: error: Item "None" of "Optional[datetime]" has no attribute "tz"
+ src/prefect/orion/schemas/schedules.py:281: error: "datetime" has no attribute "tz"
- src/prefect/orion/schemas/schedules.py:283: error: Item "None" of "Optional[datetime]" has no attribute "year"
- src/prefect/orion/schemas/schedules.py:284: error: Item "None" of "Optional[datetime]" has no attribute "month"
- src/prefect/orion/schemas/schedules.py:285: error: Item "None" of "Optional[datetime]" has no attribute "day"
- src/prefect/orion/schemas/schedules.py:286: error: Item "None" of "Optional[datetime]" has no attribute "hour"
- src/prefect/orion/schemas/schedules.py:287: error: Item "None" of "Optional[datetime]" has no attribute "minute"
- src/prefect/orion/schemas/schedules.py:288: error: Item "None" of "Optional[datetime]" has no attribute "second"
- src/prefect/orion/schemas/schedules.py:289: error: Item "None" of "Optional[datetime]" has no attribute "microsecond"
+ src/prefect/orion/schemas/schedules.py:395: error: Incompatible default for argument "n" (default has type "None", argument has type "int")
+ src/prefect/orion/schemas/schedules.py:396: error: Incompatible default for argument "start" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:397: error: Incompatible default for argument "end" (default has type "None", argument has type "datetime")
+ src/prefect/orion/schemas/schedules.py:417: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "datetime")
+ src/prefect/orion/database/alembic_commands.py:46: error: Incompatible default for argument "message" (default has type "None", argument has type "str")
+ src/prefect/logging/loggers.py:31: error: Incompatible default for argument "name" (default has type "None", argument has type "str")
+ src/prefect/logging/loggers.py:55: error: Incompatible default for argument "context" (default has type "None", argument has type "RunContext")
+ src/prefect/logging/loggers.py:95: error: Argument "flow_run" to "task_run_logger" has incompatible type "Optional[FlowRun]"; expected "FlowRun"
+ src/prefect/logging/loggers.py:96: error: Argument "flow" to "task_run_logger" has incompatible type "Optional[Flow[Any, Any]]"; expected "Flow[Any, Any]"
+ src/prefect/logging/loggers.py:114: error: Incompatible default for argument "flow" (default has type "None", argument has type "Flow[Any, Any]")
+ src/prefect/logging/loggers.py:138: error: Incompatible default for argument "task" (default has type "None", argument has type "Task[Any, Any]")
+ src/prefect/logging/loggers.py:139: error: Incompatible default for argument "flow_run" (default has type "None", argument has type "FlowRun")
+ src/prefect/logging/loggers.py:140: error: Incompatible default for argument "flow" (default has type "None", argument has type "Flow[Any, Any]")
+ src/prefect/utilities/importtools.py:63: error: Incompatible default for argument "text" (default has type "None", argument has type "Union[str, bytes]")
+ src/prefect/orion/schemas/core.py:81: error: Incompatible default for argument "type" (default has type "None", argument has type "str")
+ src/prefect/orion/schemas/core.py:81: error: Incompatible default for argument "config" (default has type "None", argument has type "Dict[Any, Any]")
+ src/prefect/orion/database/orm_models.py:1048: error: Incompatible default for argument "base_model_mixins" (default has type "None", argument has type "List[Any]")
+ src/prefect/docker.py:40: error: Incompatible default for argument "prefect_version" (default has type "None", argument has type "str")
+ src/prefect/docker.py:40: error: Incompatible default for argument "python_version" (default has type "None", argument has type "str")
+ src/prefect/docker.py:40: error: Incompatible default for argument "flavor" (default has type "None", argument has type "str")
+ src/prefect/docker.py:125: error: Incompatible default for argument "platform" (default has type "None", argument has type "str")
+ src/prefect/docker.py:189: error: Incompatible default for argument "base_directory" (default has type "None", argument has type "Path")
+ src/prefect/docker.py:190: error: Incompatible default for argument "platform" (default has type "None", argument has type "str")
+ src/prefect/docker.py:191: error: Incompatible default for argument "context" (default has type "None", argument has type "Path")
+ src/prefect/docker.py:300: error: Argument "platform" to "build_image" has incompatible type "Optional[str]"; expected "str"
+ src/prefect/utilities/pydantic.py:49: error: Incompatible default for argument "__model_cls" (default has type "None", argument has type "Type[M]")
+ src/prefect/settings.py:87: error: Incompatible default for argument "value_callback" (default has type "None", argument has type "Callable[[Settings, T], T]")
- src/prefect/settings.py:355: error: Argument "value_callback" to "Setting" has incompatible type "Callable[[Settings, str], List[str]]"; expected "Optional[Callable[[Settings, str], str]]"
+ src/prefect/settings.py:355: error: Argument "value_callback" to "Setting" has incompatible type "Callable[[Settings, str], List[str]]"; expected "Callable[[Settings, str], str]"
+ src/prefect/settings.py:664: error: Incompatible default for argument "updates" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:665: error: Incompatible default for argument "set_defaults" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:666: error: Incompatible default for argument "restore_defaults" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:695: error: Incompatible default for argument "include" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:807: error: Incompatible default for argument "updates" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:808: error: Incompatible default for argument "set_defaults" (default has type "None", argument has type "Mapping[Setting[Any], Any]")
+ src/prefect/settings.py:809: error: Incompatible default for argument "restore_defaults" (default has type "None", argument has type "Iterable[Setting[Any]]")
+ src/prefect/settings.py:932: error: Incompatible default for argument "source" (default has type "None", argument has type "Path")
+ src/prefect/settings.py:1084: error: Argument "source" to "update_profile" of "ProfilesCollection" has incompatible type "Optional[Path]"; expected "Path"
+ src/prefect/filesystems.py:48: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:48: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:58: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:58: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:64: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:64: error: Incompatible default for argument "to_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:64: error: Incompatible default for argument "ignore_file" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:118: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:118: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:149: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:149: error: Incompatible default for argument "to_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:149: error: Incompatible default for argument "ignore_file" (default has type "None", argument has type "str")
- src/prefect/filesystems.py:126: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:126: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:129: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:134: error: Argument 1 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:134: error: Argument 2 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:159: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:159: error: Argument 1 to "Path" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:162: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
- src/prefect/filesystems.py:165: error: Argument 1 to "_get_ignore_func" of "LocalFileSystem" has incompatible type "Optional[str]"; expected "str"
- src/prefect/filesystems.py:175: error: Argument 1 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:175: error: Argument 2 to "copytree" has incompatible type "Optional[str]"; expected "Union[str, PathLike[str]]"
- src/prefect/filesystems.py:298: note:          def put_directory(self, local_path: Optional[str] = ..., to_path: Optional[str] = ..., ignore_file: Optional[str] = ...) -> Coroutine[Any, Any, None]
+ src/prefect/filesystems.py:298: note:          def put_directory(self, local_path: str = ..., to_path: str = ..., ignore_file: str = ...) -> Coroutine[Any, Any, None]
- src/prefect/filesystems.py:775: error: Incompatible types in assignment (expression has type "Path", variable has type "Optional[str]")
+ src/prefect/filesystems.py:757: error: Incompatible default for argument "from_path" (default has type "None", argument has type "str")
+ src/prefect/filesystems.py:757: error: Incompatible default for argument "local_path" (default has type "None", argument has type "str")
+ src/prefect/blocks/kubernetes.py:49: error: Incompatible default for argument "path" (default has type "None", argument has type "Path")
+ src/prefect/blocks/kubernetes.py:49: error: Incompatible default for argument "context_name" (default has type "None", argument has type "str")
+ src/prefect/orion/database/configurations.py:30: error: Incompatible default for argument "echo" (default has type "None", argument has type "bool")
+ src/prefect/orion/database/configurations.py:31: error: Incompatible default for argument "timeout" (default has type "None", argument has type "float")
+ src/prefect/orion/database/configurations.py:32: error: Incompatible default for argument "connection_timeout" (default has type "None", argument has type "float")
- src/prefect/orion/database/dependencies

... (truncated 799 lines) ...

github-actions[bot] avatar Sep 08 '22 05:09 github-actions[bot]