(object_path: list[str])
| 750 | |
| 751 | |
| 752 | def _static_lookup_runtime(object_path: list[str]) -> MaybeMissing[Any]: |
| 753 | static_runtime = importlib.import_module(object_path[0]) |
| 754 | for entry in object_path[1:]: |
| 755 | try: |
| 756 | static_runtime = inspect.getattr_static(static_runtime, entry) |
| 757 | except AttributeError: |
| 758 | # This can happen with mangled names, ignore for now. |
| 759 | # TODO: pass more information about ancestors of nodes/objects to verify, so we don't |
| 760 | # have to do this hacky lookup. Would be useful in several places. |
| 761 | return MISSING |
| 762 | return static_runtime |
| 763 | |
| 764 | |
| 765 | def _verify_static_class_methods( |
no outgoing calls
no test coverage detected
searching dependent graphs…