Skip to content

Commit 74d0548

Browse files
committed
Fix binding of removed annotations
1 parent 0dbd603 commit 74d0548

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/python_minifier/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ def minify(
9292
module = ast.parse(source, filename)
9393

9494
add_namespace(module)
95-
bind_names(module)
96-
resolve_names(module)
9795

9896
if remove_literal_statements:
9997
module = RemoveLiteralStatements()(module)
@@ -110,6 +108,9 @@ def minify(
110108
if remove_object_base:
111109
module = RemoveObject()(module)
112110

111+
bind_names(module)
112+
resolve_names(module)
113+
113114
if module.tainted:
114115
rename_globals = False
115116
rename_locals = False

0 commit comments

Comments
 (0)