typing and small refactor

This commit is contained in:
Andrej730
2024-03-22 13:58:07 +05:00
parent 5aa6123806
commit 7132c4e9bf
11 changed files with 126 additions and 117 deletions
@@ -18,10 +18,10 @@
import json
from pathlib import Path
from pprint import pprint
import copy
import ifcopenshell
import ifcopenshell.util.attribute
import ifcopenshell.util.schema
try:
import glob
@@ -103,7 +103,7 @@ def get_db(version):
return db.get(version)
def get_schema_by_name(version):
def get_schema_by_name(version: str):
global schema_by_name
version = ifcopenshell.util.schema.get_fallback_schema(version)
if not schema_by_name[version]: