Try and fix stub test

This commit is contained in:
Thomas Krijnen
2025-10-26 10:03:33 +01:00
parent e5ae19fd34
commit 69863ce4a9
3 changed files with 75 additions and 39 deletions
@@ -71,6 +71,13 @@ FILTERED_CARTESIAN_QUOTIENT: Any
EXACT_PREDICATES: Any
EXACT_CONSTRUCTIONS: Any
FT_AUTODETECT: Any
FT_IFCSPF: Any
FT_IFCXML: Any
FT_IFCZIP: Any
FT_ROCKSDB: Any
FT_UNKNOWN: Any
CURVES: Any
SURFACES_AND_SOLIDS: Any
CURVES_SURFACES_AND_SOLIDS: Any
@@ -96,12 +103,9 @@ class IfcSpfHeader:
"""
def file(self, *args): ...
@property
def file_description(self) -> ifcopenshell.entity_instance: ...
@property
def file_name(self) -> ifcopenshell.entity_instance: ...
@property
def file_schema(self) -> ifcopenshell.entity_instance: ...
def file_description_py(self): ...
def file_name_py(self): ...
def file_schema_py(self): ...
def read(self): ...
def tryRead(self): ...
def write(self, out): ...
@@ -145,6 +149,7 @@ class ConversionResult:
def Style(self): ...
def StylePtr(self): ...
def append(self, trsf): ...
def apply_transform(self, unit_scale): ...
def hasStyle(self): ...
def prepend(self, trsf): ...
def setStyle(self, newStyle): ...
@@ -157,6 +162,7 @@ class ConversionResultShape:
def axis(self): ...
def bounding_box(self, *args): ...
def box(self): ...
def concat(self, arg2): ...
def convex_decomposition(self): ...
def convex_tag(self, b): ...
def edges(self): ...
@@ -178,9 +184,11 @@ class ConversionResultShape:
def solid(self): ...
def solid_mt(self): ...
def subtract(self, arg2): ...
def surface_area_along_direction(self, tol, arg3, along_x, along_y, along_z): ...
def surface_genus(self): ...
def vertices(self): ...
def volume(self): ...
def wrap_in_compound(self): ...
class DoubleArray3:
def back(self): ...
@@ -284,11 +292,6 @@ class HdfSerializer(GeometrySerializer):
def write(self, *args): ...
def writeHeader(self): ...
class HeaderEntity:
def getArgument(self, index): ...
def getArgumentCount(self): ...
def toString(self, upper): ...
class IfcBaseEntity(entity_instance):
def declaration(self): ...
def get(self, name): ...
@@ -304,9 +307,17 @@ class IfcEntityInstanceData: ...
class IfcLateBoundEntity(IfcBaseEntity):
def declaration(self): ...
class InstanceReference:
file_offset: Any
v: Any
class InstanceStreamer:
def bypassTypes(self, type_names): ...
def bypassed_instances(self): ...
coerce_attribute_count: bool
def hasSemicolon(self): ...
def inverses(self, *args): ...
def pushPage(self, page): ...
def readInstancePy(self, type_as_declaration_instance): ...
def references(self, *args): ...
def semicolonCount(self): ...
def status(self): ...
class Iterator:
initialization_outcome_: Any
@@ -377,6 +388,17 @@ class Representation:
def settings(self): ...
class RocksDBPrefixIterator:
def key(self): ...
def next(self): ...
def valid(self): ...
def value(self): ...
class RocksDbSerializer:
def finalize(self): ...
def ready(self): ...
def setFile(self, arg2): ...
def writeHeader(self): ...
class Serialization(Representation):
@property
def brep_data(self): ...
@@ -829,6 +851,7 @@ class entity_instance:
...
def get_attribute_names(self): ...
def get_attribute_value(self, index): ...
def get_inverse(self, a): ...
def get_inverse_attribute_names(self): ...
def id(self) -> int: ...
@@ -851,6 +874,7 @@ class entity_instance:
def setArgumentAsLogical(self, i, v): ...
def setArgumentAsNull(self, i): ...
def setArgumentAsString(self, i, a): ...
def set_attribute_value(self, *args): ...
def toString(self, arg2, upper): ...
def to_string(self, valid_spf): ...
def unset_attribute_value(self, i): ...
@@ -888,14 +912,10 @@ class face:
def print_impl(self, o, indent): ...
class file:
INSTANCE_ID: Any
INSTANCE_TYPE: Any
ATTRIBUTE_INDEX: Any
guid_map_: Any
stream: Any
def FreshId(self): ...
def add(self, entity: entity_instance, id: int) -> entity_instance: ...
def addEntities(self, entities): ...
def add_type_ref(self, new_entity): ...
def batch(self) -> None:
"""Enable batch mode.
@@ -919,10 +939,15 @@ class file:
...
def build_inverses(self): ...
def build_inverses_(self, arg2): ...
def by_guid(self, guid: str) -> entity_instance: ...
def by_id(self, id: int) -> entity_instance: ...
def by_type(self, *args): ...
def by_type_excl_subtypes(self, *args): ...
def bypass_type(self, type_name): ...
calculate_unit_factors: bool
check_existance_before_adding: bool
def create(self, decl): ...
@staticmethod
def createTimestamp(): ...
def entity_names(self) -> tuple[int, ...]:
@@ -961,24 +986,27 @@ class file:
def get_total_inverses(self, e: entity_instance) -> int: ...
def good(self): ...
@staticmethod
def guid_map(*args): ...
def header(self) -> IfcSpfHeader:
def header(self, *args) -> IfcSpfHeader:
"""Internal IfcSpfHeader instance, always prefer ``ifcopenshell.file.header`` instead."""
def ifcroot_type(self) -> entity: ...
def internal_guid_map(self): ...
def load(self, entity_instance_name, entity, arg4, attribute_index): ...
def initialize(self, *args): ...
instantiate_typed_instances: bool
def key_value_store_iter(self, prefix): ...
def key_value_store_query(self, key): ...
def process_deletion_inverse(self, inst): ...
def recalculate_id_counter(self): ...
def remove(self, entity: entity_instance) -> None: ...
def remove_type_ref(self, new_entity): ...
def reset_identity_cache(self): ...
@property
def schema(self): ...
def storage_mode(self): ...
def to_string(self): ...
@staticmethod
def traverse(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ...
@staticmethod
def traverse_breadth_first(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ...
def try_read_semicolon(self): ...
def types(self) -> tuple[str, ...]:
"""Return a tuple of classes present in the file.
@@ -986,16 +1014,15 @@ class file:
"""
...
def types_begin(self): ...
def types_end(self): ...
def write(self, fn): ...
class file_open_status:
SUCCESS: Any
READ_ERROR: Any
NO_HEADER: Any
UNSUPPORTED_SCHEMA: Any
INVALID_SYNTAX: Any
SUCCESS: int
READ_ERROR: int
NO_HEADER: int
UNSUPPORTED_SCHEMA: int
INVALID_SYNTAX: int
UNKNOWN: int
def value(self): ...
class fn_evaluator:
@@ -1037,9 +1064,6 @@ class geometry_conversion_result:
products_2: Any
representation: Any
class geometry_exception:
def what(self): ...
class gradient_function(function_item):
def calc_hash(self): ...
def clone_(self): ...
@@ -1138,6 +1162,8 @@ class matrix4(item):
def is_identity(self): ...
def kind(self): ...
def translation_part(self): ...
def post_multiply_scale(self, s): ...
def pre_multiply_scale(self, s): ...
class named_type(parameter_type):
def _is(self, *args): ...
@@ -1516,13 +1542,11 @@ class sweep(geom_item):
class sweep_along_curve(sweep):
curve: Any
surface: Any
direction: Any
def calc_hash(self): ...
def clone_(self): ...
def kind(self): ...
class too_many_faces_exception(geometry_exception): ...
class topology_error: ...
class torus(surface):
radius1: Any
radius2: Any
@@ -1568,6 +1592,8 @@ class type_declaration(declaration):
def as_type_declaration(self) -> type_declaration: ...
def declared_type(self): ...
class uninitialized_tag: ...
def arrange_polygons(polygons): ...
def clear_schemas(): ...
def construct_iterator_with_include_exclude(geometry_library, settings, file, elems, include, num_threads): ...
@@ -1581,6 +1607,7 @@ def flatten(deep): ...
def get_feature(x): ...
def get_info_cpp(v, include_identifier): ...
def get_log(): ...
def guess_file_type(fn): ...
def helmert_curve_point(A0, A1, A2, s): ...
def kind_to_string(k): ...
def less(arg1, arg2): ...
@@ -1588,7 +1615,7 @@ def line_segments_to_polygons(s, eps, segments): ...
def map_shape(settings, instance): ...
def nary_union(sequence): ...
def new_IfcBaseClass(schema_identifier: str, name: str) -> entity_instance: ...
def open(fn): ...
def open(fn, readonly): ...
def parse_ifcxml(filename): ...
def polygons_to_svg(*args): ...
def read(data): ...
@@ -1599,6 +1626,7 @@ def serialise(schema_name, shape_str, advanced): ...
def set_feature(x, v): ...
def set_log_format_json(): ...
def set_log_format_text(): ...
def stream_from_string(data): ...
def svg_to_line_segments(data, class_name): ...
def svg_to_polygons(data, class_name): ...
def taxonomy_item_repr(i): ...