__future__
imports allow dots before them
#118216
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
__future__
imports don't check the amount of dots while checkingfrom
-import
nodes for the module name, so they are still valid even if dots are put before the module name.Is this intended? Allowing dots before the module name seems improper considering
__future__
is supposed to be part of the stdlib.CPython versions tested on:
3.12, 3.13
Operating systems tested on:
Windows
Linked PRs
__future__
importsΒ #118267The text was updated successfully, but these errors were encountered: