Skip to content

fix: worker metrics type annotations and prometheus remove call#9

Merged
SketchRudy merged 1 commit into
mainfrom
fix/worker-metrics-type-annotations
May 23, 2026
Merged

fix: worker metrics type annotations and prometheus remove call#9
SketchRudy merged 1 commit into
mainfrom
fix/worker-metrics-type-annotations

Conversation

@AAshGray
Copy link
Copy Markdown
Collaborator

Fix mypy errors in worker_metrics.py and its unit tests.

Changes:

  • import os as os to explicitly re-export os for mypy
  • flagsmith_worker_rss_bytes.remove(str(current_pid)) — pass label value positionally instead of as keyword arg
  • Add type annotations to MockGaugeLabels and MockGauge in test file

@AAshGray AAshGray marked this pull request as ready for review May 22, 2026 13:04
@SketchRudy SketchRudy merged commit 2600c6e into main May 23, 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