MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / format_class

Function format_class

src/bsdd/yml_to_classes.py:32–36  ·  view source on GitHub ↗
(class_str: str)

Source from the content-addressed store, hash-verified

30
31
32def format_class(class_str: str) -> str:
33 if "." not in class_str:
34 return class_str
35 class_name, version = class_str.split(".")
36 return f"{class_name}{version.upper()}"
37
38
39if __name__ == "__main__":

Callers 2

get_python_typeFunction · 0.85
yml_to_classes.pyFile · 0.85

Calls 2

splitMethod · 0.80
upperMethod · 0.80

Tested by

no test coverage detected