Skip to content

refactor: импорты#148

Merged
love-apples merged 4 commits into
mainfrom
feat/re-imports
May 18, 2026
Merged

refactor: импорты#148
love-apples merged 4 commits into
mainfrom
feat/re-imports

Conversation

@love-apples
Copy link
Copy Markdown
Owner

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread maxapi/enums/__init__.py
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 broadens public import surfaces so users can import common types, attachment helpers, method result types, and enums from package-level modules instead of deep paths.

Changes:

  • Added package-level re-exports for maxapi.enums, maxapi.types, attachment packages, and method result types.
  • Added tests validating selected public re-export paths.
  • Added lazy SendedMessage access from maxapi.types to avoid an eager import cycle.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
maxapi/enums/__init__.py Re-exports enum classes and aliases from the enum package.
maxapi/methods/types/__init__.py Adds public exports for method response/result models.
maxapi/types/__init__.py Adds common model re-exports and lazy SendedMessage access.
maxapi/types/attachments/__init__.py Re-exports attachment, payload, upload, and button-related models.
maxapi/types/attachments/buttons/__init__.py Re-exports inline button models and the base Button.
tests/test_public_reexports.py Adds regression tests for representative public re-export paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread maxapi/types/__init__.py Outdated
@love-apples love-apples merged commit c5b32e3 into main May 18, 2026
13 checks passed
@love-apples love-apples deleted the feat/re-imports branch May 18, 2026 06:48
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.

3 participants