pycon
pycon copied to clipboard
Move API concerns from pretix/__init__.py to api/pretix/types.py
Fixes #3976
Summary
This PR moves Strawberry GraphQL types from pretix/__init__.py to api/pretix/types.py to improve code organization and separate API concerns from the Pretix HTTP client logic.
Changes
- Moved all Strawberry GraphQL types and inputs to
api/pretix/types.py - Updated imports in affected files
- Added
__all__topretix/__init__.pyfor backward compatibility - Reduced
pretix/__init__.pyfrom 686 to 497 lines
Testing
All imports have been updated and backward compatibility is maintained through re-exports.
Generated with Claude Code
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Updated (UTC) |
|---|---|---|---|
| pycon | Preview | Nov 18, 2025 1:12am |
Codecov Report
:x: Patch coverage is 99.32886% with 1 line in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 94.52%. Comparing base (cf5a642) to head (7fb0e02).
Additional details and impacted files
@@ Coverage Diff @@
## main #4496 +/- ##
=======================================
Coverage 94.52% 94.52%
=======================================
Files 352 352
Lines 10127 10127
Branches 731 731
=======================================
Hits 9573 9573
Misses 461 461
Partials 93 93
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.