File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ be classified as containing a PNG image
26
26
>> > Zip[Jpeg].matches(zipped_png_fspath)
27
27
False
28
28
29
+ .. note :: warning
30
+ At the time of writing currently classifiers are not supported by Mypy and other
31
+ static type checkers (only dynamic type-checking in Pydra _) because they use a
32
+ custom `__subclasshook__ ` method to implement the subclassing behaviour and overload
33
+ the `__class_getitem__ ` method, which isn't recommended in the official docs. It is
34
+ hoped that it will be possible to implement a custom Mypy plugin in the future to
35
+ support this feature.
36
+
29
37
The types of classes that can be used to classify varies from type to type. For archive
30
38
types like :class: `.Zip `, :class: `.Gzip `, take another file format type, others specific
31
39
classifier types. Some classifiable types can take multiple classifiers, whereas others can
You can’t perform that action at this time.
0 commit comments