Skip to content

[red-knot] rename module_global to global#12385

Merged
carljm merged 1 commit intomainfrom
cjm/rename-module-global
Jul 18, 2024
Merged

[red-knot] rename module_global to global#12385
carljm merged 1 commit intomainfrom
cjm/rename-module-global

Conversation

@carljm
Copy link
Copy Markdown
Contributor

@carljm carljm commented Jul 18, 2024

Per comments in #12269, "module global" is kind of long, and arguably redundant.

I tried just using "module" but there were too many cases where I felt this was ambiguous. I like the way "global" works out better, though it does require an understanding that in Python "global" generally means "module global" not "globally global" (though in a sense module globals are also globally global since modules are singletons).

@MichaReiser MichaReiser added the ty Multi-file analysis & type inference label Jul 18, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 18, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Base automatically changed from cjm/scope-lookups to main July 18, 2024 17:50
@carljm carljm force-pushed the cjm/rename-module-global branch from 523326c to ed251b2 Compare July 18, 2024 19:46
@carljm carljm merged commit 181e7b3 into main Jul 18, 2024
@carljm carljm deleted the cjm/rename-module-global branch July 18, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants