mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-48219 Use PyModuleType to get attributes of a not imported module
It gives more accurate results and allows to bypass the problem of PyFile#iterateNames(), which limits the results by the content of "__all__" (as the method is used to resolve names in star imports). GitOrigin-RevId: b19604d9e25a738909a02a1d81e4716675417430
This commit is contained in:
committed by
intellij-monorepo-bot
parent
83b3990673
commit
7fc1f80e2e
+3
@@ -0,0 +1,3 @@
|
||||
import numpy as np
|
||||
|
||||
np.arange()
|
||||
+1
@@ -0,0 +1 @@
|
||||
np.a<caret>
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
def max():
|
||||
pass
|
||||
|
||||
|
||||
def arange():
|
||||
pass
|
||||
|
||||
|
||||
__all__ = ['max']
|
||||
+1
@@ -0,0 +1 @@
|
||||
mod.<caret>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
foo = 1
|
||||
bar = 2
|
||||
__all__ = ['bar']
|
||||
Reference in New Issue
Block a user