You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
missing unicode leads to warnings when parsing types in a python 3 environment (maybe we should only use EITHER unicode or str, depending on the current version of python, or just ditch unicode from 2.7). EDIT: We ditched unicode.
attached classes seem to be typed with their hidden global types (_AttacheeClass_AttachedClass). (Might be fixable during doc generation) But we can check if it would be easier to just type with the attached type.
attached functions are currently typed via:
class AASequence:
...
fromString: __static_AASequence_fromString
but mypy does not seem to like it. Transfer of types is apparently not easy. We might need to copy the whole signature.
typing of setters is missing. We type attributes though. It can get complicated to have different types for the properties (i.e. attributes) and their setters. E.g. if you use libcpp_utf8_string as a property it accepts str and bytes as setter but of course can only return one of them as getter. See also What to do about setters of a different type than their property? python/mypy#3004
similar to the point before: We probably need to support input and output types (like we have input and output conversion code). This can then be used for asymmetric types that accept many python types but return only one (like OpenMS' String)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: