-
Notifications
You must be signed in to change notification settings - Fork 134
Renaming Internal Structs #1059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
80611e6
3c15d55
8affdc0
2529109
42daa1b
f995cb8
4200a39
580ecd5
03d3398
5eebc45
a669bcf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,13 @@ def missing_exports(internal_obj, wrapped_obj) -> None: | |
| for attr in dir(internal_obj): | ||
| if attr in ["_global_ctx"]: | ||
| continue | ||
|
|
||
| # Check if Raw* classes have corresponding wrapper classes | ||
| elif attr.startswith("Raw"): | ||
| base_class = attr[3:] # Remove "Raw" prefix | ||
| assert hasattr(wrapped_obj, base_class) | ||
| continue | ||
|
|
||
| assert attr in dir(wrapped_obj) | ||
|
|
||
| internal_attr = getattr(internal_obj, attr) | ||
|
|
@@ -51,6 +58,8 @@ def missing_exports(internal_obj, wrapped_obj) -> None: | |
| if isinstance(internal_attr, list): | ||
| assert isinstance(wrapped_attr, list) | ||
| for val in internal_attr: | ||
| if isinstance(val, str) and val.startswith("Raw"): | ||
| continue | ||
|
||
| assert val in wrapped_attr | ||
| elif hasattr(internal_attr, "__dict__"): | ||
| missing_exports(internal_attr, wrapped_attr) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.