Skip to content

Conversation

@beauxq
Copy link
Collaborator

@beauxq beauxq commented Nov 17, 2025

What is this fixing or adding?

mostly just updating the typing

How was this tested?

generated and connected to a snes game and picked up a few items

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Nov 17, 2025
Comment on lines -350 to +369
Operands: typing.List[str]
# TODO: When Python 3.11 is the lowest version supported, `Operands` can use `typing.NotRequired` (pep-0655)
# Then the `Operands` key doesn't need to be given for opcodes that don't use it.
Operands: list[str]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought about doing what was in this TODO comment (that I wrote a long time ago).
But then I figured it would be safer, and easier, and more consistent to just include the Operands key even if it's not necessary.

The only downside is sending a few extra bytes to SNI, only when we make the initial connection.

Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to make it optional a-la | None instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That seems to me like a worse version of the same downside. (null is more bytes than [])
But then it also adds another possible downside as something that hasn't gone through years of testing already.

@NewSoupVi NewSoupVi added the is: refactor/cleanup Improvements to code/output readability or organizization. label Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is: refactor/cleanup Improvements to code/output readability or organizization. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants