mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
More cleaning up of forward type hints to fix import errors
This commit is contained in:
@@ -23,12 +23,12 @@ import ifcopenshell.util.schema
|
||||
import ifcopenshell.util.type
|
||||
from ifcopenshell.entity_instance import entity_instance
|
||||
from functools import lru_cache
|
||||
from typing import List, Generator, Optional
|
||||
from typing import List, Optional
|
||||
|
||||
templates: dict[str, PsetQto] = {}
|
||||
templates: dict[str, "PsetQto"] = {}
|
||||
|
||||
|
||||
def get_template(schema: str) -> PsetQto:
|
||||
def get_template(schema: str) -> "PsetQto":
|
||||
global templates
|
||||
if schema not in templates:
|
||||
templates[schema] = PsetQto(schema)
|
||||
|
||||
Reference in New Issue
Block a user