Skip to content

mypy type errors #63

@jjjermiah

Description

@jjjermiah
snakemake_interface_storage_plugins/storage_provider.py:76: error: Need type annotation for "_rate_limiters" (hint: "_rate_limiters: dict[<type>, <type>] = ...")  [var-annotated]
snakemake_interface_storage_plugins/storage_provider.py:89: error: Item "None" of "StorageProviderSettingsBase | None" has no attribute "max_requests_per_second"  [union-attr]
snakemake_interface_storage_plugins/storage_provider.py:156: error: Module "snakemake_interface_storage_plugins.storage_object" has no attribute "StorageObjectReadWrite"; maybe "StorageObjectWrite" or "StorageObjectRead"?  [attr-defined]
snakemake_interface_storage_plugins/storage_provider.py:160: error: "StorageProviderBase" has no attribute "storage_object_cls"; maybe "get_storage_object_cls"?  [attr-defined]
snakemake_interface_storage_plugins/storage_object.py:80: error: Incompatible types in assignment (expression has type "Path", variable has type "None")  [assignment]
snakemake_interface_storage_plugins/storage_object.py:84: error: Incompatible return value type (got "StorageQueryValidationResult", expected "bool")  [return-value]
Found 6 errors in 2 files (checked 9 source files)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions