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

SCons: Change Environment type hints to SConsEnvironment #85322

Merged

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Nov 24, 2023

Fixes an inconsistency in the detect.py type checking, as the wrong type was being checked; the actual type passed through the argument is SCons.Script.SConscript.SConsEnvironment, not SCons.Environment. In addition to assigning the proper type, this PR also adds type hints to the files' other arguments that expected an env, as those uniformly expect SConsEnvironment as well

@Repiteo Repiteo requested review from a team as code owners November 24, 2023 19:49
@Calinou Calinou added bug topic:buildsystem cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Nov 24, 2023
@Calinou Calinou added this to the 4.3 milestone Nov 24, 2023
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Seems fine. Needs a rebase.

@akien-mga akien-mga changed the title SCons: Environment to SConsEnvironment SCons: Change Environment type hints to SConsEnvironment Feb 14, 2024
@Repiteo Repiteo force-pushed the scons-Environment-to-SConsEnvironment branch from 1f8a50a to 633dcf6 Compare February 14, 2024 15:27
@Repiteo Repiteo requested a review from a team as a code owner February 14, 2024 15:27
@akien-mga akien-mga merged commit 83215bd into godotengine:master Feb 15, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the scons-Environment-to-SConsEnvironment branch February 17, 2024 16:46
@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants