Skip to content

Fix: Suppress mypy errors in Fern auto-generated files#57

Merged
adeelehsan merged 1 commit intomainfrom
fix/mypy-suppress-fern-errors
Apr 8, 2026
Merged

Fix: Suppress mypy errors in Fern auto-generated files#57
adeelehsan merged 1 commit intomainfrom
fix/mypy-suppress-fern-errors

Conversation

@adeelehsan
Copy link
Copy Markdown
Contributor

Summary

  • Suppresses mypy errors caused by Fern generator bugs in auto-generated code
  • httpx_sse: missing type stubs
  • agent_events.types: stream_response type conflict (Optional[bool] vs Literal[True/False])
  • Both scoped only to auto-generated files, no impact on manual code

Test plan

  • CI compile job passes

🤖 Generated with Claude Code

- httpx_sse: missing type stubs (Fern imports it without stubs)
- agent_events.types: stream_response type conflict where subclass
  declares Optional[bool] but base class has Literal[True/False]

Both are Fern generator bugs to be fixed upstream.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adeelehsan adeelehsan merged commit 3186d24 into main Apr 8, 2026
3 checks passed
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.

1 participant