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

Don't assume ENV is a superenv in RBI #18134

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Don't assume ENV is a superenv in RBI #18134

merged 1 commit into from
Aug 23, 2024

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Aug 23, 2024

Some methods are superenv specific, so it's better for type safety to not assume ENV is always a superenv and instead T.cast where necessary. Also moved some stdenv definitions to the shared ENV to help achieve this.

We still assume that ENV.activate_extensions! has been called and thus some form of SharedEnvExtension has been included.

⚠️ Depends on #18132.

Base automatically changed from envmethods to master August 23, 2024 07:05
@MikeMcQuaid
Copy link
Member

Makes sense, thanks again @Bo98!

@MikeMcQuaid MikeMcQuaid merged commit 32bba8a into master Aug 23, 2024
22 checks passed
@MikeMcQuaid MikeMcQuaid deleted the env-not-superenv branch August 23, 2024 07:05
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.

3 participants