Skip to content
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

Various fixes in the env escape code #1734

Merged
merged 5 commits into from
Mar 14, 2024
Merged

Conversation

romain-intel
Copy link
Contributor

We now handle exceptions that are also proxied classes better

We canonicalize more names to better deal with aliases in proxied libraries.

Other cleanup

We now handle exceptions that are also proxied classes better

We canonicalize more names to better deal with aliases in proxied libraries.

Other cleanup
# - proxied functions
# - classes that are proxied regular classes AND proxied exceptions
# - classes that are proxied regular classes AND NOT proxied exceptions
# - clases that are NOT proxied regular classes AND are proxied exceptions
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: classes

)

# Detect circular aliaes. If a user lists ("a", "b") and then ("b", "a"), we
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit aliases ?

# actually:
# - the class itself (which is a stub)
# - the class in the capacity of a parent class (to another exception
# presumably). The reason for this is that if we have a exception/proxied
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: an exception

# - A_parent inherits from the actual parents of A (let's assume a
# builtin exception)
# - A inherits from (Stub, A_parent)
# - B_parent inherints from A_parent and the builtin Exception
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: inherits

@wangchy27 wangchy27 merged commit bc8dead into master Mar 14, 2024
30 of 33 checks passed
@wangchy27 wangchy27 deleted the fix/escape-hatch-exceptions branch March 14, 2024 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants