Skip to content

fix(ee): remove unnecessary quotes from type annotation#1558

Merged
Haz3-jolt merged 1 commit into
Observal:mainfrom
HemalathaMadeswaran18:fix/ee-lint-up037-enterprise-guard
Jul 3, 2026
Merged

fix(ee): remove unnecessary quotes from type annotation#1558
Haz3-jolt merged 1 commit into
Observal:mainfrom
HemalathaMadeswaran18:fix/ee-lint-up037-enterprise-guard

Conversation

@HemalathaMadeswaran18

Copy link
Copy Markdown
Contributor

Purpose / Description

The file ee/observal_server/middleware/enterprise_guard.py already uses from __future__ import annotations, making the quoted string annotation on line 32 redundant. Ruff UP037 flags this.

Fixes

Approach

Remove the quotes around Settings in the __init__ signature since from __future__ import annotations already defers evaluation.

How Has This Been Tested?

make lint passes cleanly after this change.

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)

AI Assistance

  • Yes (Kiro CLI)
  • Was the generated code manually reviewed and tested?

The file already uses `from __future__ import annotations`, making
the string annotation redundant. Fixes ruff UP037.

Closes Observal#1557
@github-actions github-actions Bot added the enterprise Enterprise-grade readiness label Jul 3, 2026
@HemalathaMadeswaran18

Copy link
Copy Markdown
Contributor Author

Testing evidence
image

@Haz3-jolt Haz3-jolt merged commit 420a6da into Observal:main Jul 3, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enterprise Enterprise-grade readiness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(lint): remove quotes from type annotation in enterprise_guard.py

2 participants