Skip to content

Fix undefined name 't2' in get_layout_csv_from_trp2 - #453

Merged
Belval merged 1 commit into
masterfrom
fix-299-t2-import
Aug 6, 2026
Merged

Belval merged 1 commit into
masterfrom
fix-299-t2-import

Conversation

@Belval

@Belval Belval commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

get_layout_csv_from_trp2 annotates a local variable as t2.TRelationship (t_pretty_print_layout.py:262), but the module alias 't2' was never imported. Add 'import trp.trp2 as t2' so the name resolves. TRelationship lives in trp.trp2, the same module TDocument is already imported from.

Closes #299

get_layout_csv_from_trp2 annotates a local variable as t2.TRelationship
(t_pretty_print_layout.py:262), but the module alias 't2' was never
imported. Add 'import trp.trp2 as t2' so the name resolves. TRelationship
lives in trp.trp2, the same module TDocument is already imported from.

Closes #299
@Belval
Belval merged commit ddf4b8c into master Aug 6, 2026
3 of 4 checks passed
@Belval
Belval deleted the fix-299-t2-import branch August 6, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

two line import fix for get_layout_csv_from_trp2

1 participant