mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
typing
This commit is contained in:
@@ -584,7 +584,7 @@ class aggregation_type(parameter_type):
|
||||
bag_type: Any
|
||||
list_type: Any
|
||||
set_type: Any
|
||||
def as_aggregation_type(self): ...
|
||||
def as_aggregation_type(self) -> aggregation_type: ...
|
||||
def bound1(self): ...
|
||||
def bound2(self): ...
|
||||
def type_of_aggregation(self): ...
|
||||
@@ -1120,8 +1120,8 @@ class matrix4(item):
|
||||
|
||||
class named_type(parameter_type):
|
||||
def _is(self, *args): ...
|
||||
def as_named_type(self): ...
|
||||
def declared_type(self): ...
|
||||
def as_named_type(self) -> named_type: ...
|
||||
def declared_type(self) -> declaration: ...
|
||||
|
||||
class node(item):
|
||||
def calc_hash(self): ...
|
||||
@@ -1146,10 +1146,16 @@ class offset_function(function_item):
|
||||
def start(self): ...
|
||||
|
||||
class parameter_type:
|
||||
def _is(self, *args): ...
|
||||
def as_aggregation_type(self): ...
|
||||
def as_named_type(self): ...
|
||||
def as_simple_type(self): ...
|
||||
def _is(self, *args: Union[str, declaration]) -> bool:
|
||||
"""
|
||||
:param args: IFC class name or declaration to check.
|
||||
Argument accepts only 1 value.
|
||||
"""
|
||||
...
|
||||
|
||||
def as_aggregation_type(self) -> Union[aggregation_type, None]: ...
|
||||
def as_named_type(self) -> Union[named_type, None]: ...
|
||||
def as_simple_type(self) -> Union[simple_type, None]: ...
|
||||
|
||||
class piecewise_function(function_item):
|
||||
def calc_hash(self): ...
|
||||
@@ -1268,7 +1274,7 @@ class simple_type(parameter_type):
|
||||
real_type: Any
|
||||
string_type: Any
|
||||
datatype_COUNT: Any
|
||||
def as_simple_type(self): ...
|
||||
def as_simple_type(self) -> simple_type: ...
|
||||
def declared_type(self): ...
|
||||
|
||||
class solid:
|
||||
|
||||
Reference in New Issue
Block a user