Open
Description
Protocol is defined as a ClassVar
:
filesystem_spec/fsspec/spec.py
Line 109 in ffdfed1
This means that pylance gives me an error when I try to set it in a constructor:

Typing protocol as a ClassVar
makes sense if you assume that you have separate, concrete classes for each implementation, but this is not always true. In Obstore, we have one class (FsspecStore
) which dynamically supports different protocols based on the type of obstore.store
used inside it.
Metadata
Metadata
Assignees
Labels
No labels