Skip to content

Refactor for type hints and clarity#4

Merged
jpelay merged 6 commits into
hedyorg:mainfrom
Kache:typing-refactors
May 13, 2026
Merged

Refactor for type hints and clarity#4
jpelay merged 6 commits into
hedyorg:mainfrom
Kache:typing-refactors

Conversation

@Kache

@Kache Kache commented May 7, 2026

Copy link
Copy Markdown
Contributor
  • Remove dead code
  • Improve type hinting
  • Log formatted AST
  • Use AstInfo
  • Construct ConvertToPython using AstInfo

Ahead of upcoming changes for:

@Kache Kache force-pushed the typing-refactors branch from 11fe905 to 85a72fd Compare May 7, 2026 17:40
@Kache Kache force-pushed the typing-refactors branch from 85a72fd to aa53392 Compare May 7, 2026 17:47

@jpelay jpelay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the pull request! Thank you so much for applying these improvements

Comment thread src/hedy/__init__.py
return any(c in self.commands for c in cmds)


class ParseResult(NamedTuple):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner than using the NamedTuple directly, I like it.

@jpelay jpelay merged commit 2c4f686 into hedyorg:main May 13, 2026
1 of 2 checks passed
@Kache

Kache commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

@jpelay thanks!

In the future, can I request that my PR's be merged using "Rebase and Merge", particularly when I've made the point to organize a series of linear, atomic, commits?

@Kache Kache deleted the typing-refactors branch May 15, 2026 16:24
@Kache Kache restored the typing-refactors branch May 15, 2026 16:33
Kache added a commit to Kache/hedylang that referenced this pull request Jun 7, 2026
@Kache Kache mentioned this pull request Jun 7, 2026
@Kache Kache deleted the typing-refactors branch June 7, 2026 02:00
Kache added a commit to Kache/hedylang that referenced this pull request Jun 10, 2026
- **Remove dead code**
- **Improve type hinting**
- **Log formatted AST**
- **Use AstInfo**
- **Construct ConvertToPython using AstInfo**

Ahead of upcoming changes for:
 * hedyorg#2
 * hedyorg/hedy#5836 (comment)
Kache added a commit to Kache/hedylang that referenced this pull request Jun 10, 2026
- **Remove dead code**
- **Improve type hinting**
- **Log formatted AST**
- **Use AstInfo**
- **Construct ConvertToPython using AstInfo**

Ahead of upcoming changes for:
 * hedyorg#2
 * hedyorg/hedy#5836 (comment)
Kache added a commit to Kache/hedylang that referenced this pull request Jun 12, 2026
In order to reapply as individual atomic commits

This reverts commit 2c4f686.
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.

2 participants