Is it possible in Python to pass a “type” to the parameterized methods of the Revit API? For example,
Get (FieldType) from an ExtensibleStorage class.
This method is parameterized, i.e. in this method, in addition to the fieldName argument, you need to pass the field type FieldType. In C #, this is done using angle brackets.
How can this be done in Python? If you do not specify a type in this method at all, an error occurs with a warning that the type is not specified in the method.
“TypeError: The type arguments for method ‘Get’ cannot be inferred from the usage. Try specifying the type arguments explicitly.”