Skip to content

Add a bunch of type hints - #2454

Merged
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
vaisest:bunch-of-type-hints
Aug 29, 2026
Merged

Add a bunch of type hints#2454
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
vaisest:bunch-of-type-hints

Conversation

@vaisest

@vaisest vaisest commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

PathOfBuildingCommunity/PathOfBuilding#10227

Based on #2453

Steps taken to verify a working solution:

  • Tests pass
  • Behaviour is unchanged

@vaisest
vaisest force-pushed the bunch-of-type-hints branch from d264f6e to 907fab4 Compare August 29, 2026 14:24
Add the missing AnchorPoint enum and generic Prop<T> type definitions.
Allow control anchors to use a Control, ControlHost, or no parent.
Pass nil when creating CalcSectionControl without a parent control.
Mark optional UI fields such as label, slotLabel, and forceTooltip correctly.
Mark optional callbacks and conversion functions correctly.
Correct passive tree types, including integer node IDs, optional background data, and nullable node comparisons.
Mark main-hand and off-hand calculation outputs as optional.
Restrict CalcEnvMode to the modes actually accepted by initEnv.
Correct the calculator callback name from toggleTincture to toggleCharm.
Mark optional calculator callback arguments correctly.
Remove unused or invalid declarations such as byTitle, TransformFunc, points, and Doubled.
@LocalIdentity LocalIdentity added the technical Hidden from release notes label Aug 29, 2026
@LocalIdentity
LocalIdentity merged commit 6df5844 into PathOfBuildingCommunity:dev Aug 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical Hidden from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants