Skip to content

fixed hours type hint - #3830

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:fixes
Aug 21, 2026
Merged

LKuemmel merged 1 commit into
openWB:masterfrom
LKuemmel:fixes

Conversation

@LKuemmel

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens the type hints for the fixed-hours flexible tariff configuration by replacing the generic list[dict[str, Any]] tariff structure with explicit TypedDict definitions. This improves static correctness and IDE/type-checker support for the fixed-hours tariff module.

Changes:

  • Introduces FixedHoursActiveTimes and FixedHoursTariffEntry TypedDicts to define the expected shape of tariff configuration entries.
  • Updates FixedHoursTariffConfiguration.tariffs to list[FixedHoursTariffEntry] for stronger typing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@LKuemmel
LKuemmel merged commit 3039a21 into openWB:master Aug 21, 2026
1 check passed
ndrsnhs pushed a commit to ndrsnhs/core that referenced this pull request Aug 24, 2026
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