finally able to remove _get_defined_names_for_position
This commit is contained in:
1 parent
c1ed3bf38a
commit
1fd7acef7a
2 files changed
+4
-27
No files matched your search
@@ -50,6 +50,10 @@ SCOPE_CONTENTS = 'asserts', 'subscopes', 'imports', 'statements', 'returns'
|
||||
|
||||
|
||||
def filter_after_position(names, position):
|
||||
"""
|
||||
Removes all names after a certain position. If position is None, just
|
||||
returns the names list.
|
||||
"""
|
||||
if position is None:
|
||||
return names
|
||||
|
||||
|
||||
Reference in new issue
Block a user