Skip to content

Builtins: Improved features, added typings, bufixes - #31

Open
Zoroark-Zwart wants to merge 18 commits into
Timiodon:mainfrom
Zoroark-Zwart:builtins-improved-docstrings
Open

Builtins: Improved features, added typings, bufixes#31
Zoroark-Zwart wants to merge 18 commits into
Timiodon:mainfrom
Zoroark-Zwart:builtins-improved-docstrings

Conversation

@Zoroark-Zwart

@Zoroark-Zwart Zoroark-Zwart commented May 25, 2026

Copy link
Copy Markdown
Contributor
  • Added a parameter to all functions that have parameters to disable keyword arguments
  • New typing system for Drone functions
  • Credit added for Rat for these
  • Improved and specialized custom dict, list and set classes
  • Added custom range class
  • Added default to index of list pop function/method
  • Added overloads for pop function to help with typing between dict and list
  • Corrected Primitive docstring position
  • Added a new Any system using AnyTFWR and Any generic from Python builtins
  • Added type helpers for Cost, Companion, Measure / new typing for get_cost
  • Removed None return type hints to reduce typing complexity due to lack of type casting. Added notes explaining this where applicable.
  • Added type helper for WorldSizes and restricted set_world_size size to it and get_world_size return to it
  • New overloads for min and max to help narrow down their accepted inputs to better match what the game expects
  • Improved import section and explanations / exposed more common types to help general code type hints / added ModuleType
  • Removed unnecessary enum methods from all custom enum classes
  • Added better simulate typing and documentation

@Zoroark-Zwart

Copy link
Copy Markdown
Contributor Author

The @ Rat credit is for Rat on the Discord. I didn't realize it would link to a GitHub user.

@rat

rat commented May 26, 2026

Copy link
Copy Markdown

The @ Rat credit is for Rat on the Discord. I didn't realize it would link to a GitHub user.

No problem my lord

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