Skip to content

Commit 4f85b23

Browse files
committed
Ignore abstract type issue for StorageBackend
Mypy can't understand that, even though this returns an instance of an abstract base class, the instances will always be subclasses of the base class and therefore they will have their methods defined. python/mypy#4717
1 parent c61bf78 commit 4f85b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

squash_bot/storage/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ def read_file(file_path: str, file_name: str, create_if_missing: bool = False) -
8080

8181

8282
def get_storage_backend() -> StorageBackend:
83-
return settings_base.get_class_from_string(
83+
return settings_base.get_class_from_string( # type: ignore[abstract]
8484
settings_base.settings.STORAGE_BACKEND, StorageBackend
8585
)()

0 commit comments

Comments
 (0)