mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
typing
This commit is contained in:
@@ -19,7 +19,7 @@ import ifcopenshell
|
||||
|
||||
|
||||
def add_person(
|
||||
file: ifcopenshell.entity_instance,
|
||||
file: ifcopenshell.file,
|
||||
identification: str = "HSeldon",
|
||||
family_name: str = "Seldon",
|
||||
given_name: str = "Hari",
|
||||
|
||||
@@ -19,7 +19,7 @@ import ifcopenshell
|
||||
|
||||
|
||||
def add_person_and_organisation(
|
||||
file: ifcopenshell.entity_instance,
|
||||
file: ifcopenshell.file,
|
||||
person: ifcopenshell.entity_instance,
|
||||
organisation: ifcopenshell.entity_instance,
|
||||
) -> ifcopenshell.entity_instance:
|
||||
|
||||
@@ -22,7 +22,7 @@ import ifcopenshell.api.owner.settings
|
||||
from typing import Union
|
||||
|
||||
|
||||
def create_owner_history(file: ifcopenshell.entity_instance) -> Union[ifcopenshell.entity_instance, None]:
|
||||
def create_owner_history(file: ifcopenshell.file) -> Union[ifcopenshell.entity_instance, None]:
|
||||
"""Creates a new owner history indicating an element was added
|
||||
|
||||
Any object in IFC with a unique ID and name (such as physical products,
|
||||
|
||||
Reference in New Issue
Block a user