Revision e6c17f6ed58737aee8f4839eecbb73553e946b2c authored by Valentin Lorentz on 01 September 2020, 08:38:36 UTC, committed by Valentin Lorentz on 01 September 2020, 08:38:36 UTC
We're already using 'StorageInterface' as type annotation where we expect an object
that implements the same methods, but it isn't technically correct since these
objects aren't an instance of a subclass.

Making StorageInterface a protocol reflects how we already use it, without
lying to mypy.
1 parent 5afd985
History
File Mode Size
_static
_templates
images
.gitignore -rw-r--r-- 24 bytes
Makefile -rw-r--r-- 63 bytes
Makefile.local -rw-r--r-- 477 bytes
archive-copies.rst -rw-r--r-- 2.1 KB
conf.py -rw-r--r-- 43 bytes
extrinsic-metadata-specification.rst -rw-r--r-- 8.8 KB
index.rst -rw-r--r-- 1.0 KB
sql-storage.rst -rw-r--r-- 276 bytes

back to top