Skip to content

Conversation

@HitaloM
Copy link
Member

@HitaloM HitaloM commented May 24, 2024

Description

This pull request adds the from __future__ import annotations statement to the codebase in order to simplify the usage of the typing module. This statement allows for the use of forward references in type hints, which can improve code readability and maintainability.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@HitaloM HitaloM added enhancement New feature, request or code enhancement. code style Changes in code style labels May 24, 2024
@HitaloM HitaloM changed the title Add from __future__ import annotations to simplify typing" Add from __future__ import annotations to simplify typing May 24, 2024
@HitaloM HitaloM merged commit 1efdcd5 into dev May 24, 2024
@HitaloM HitaloM changed the title Add from __future__ import annotations to simplify typing refactor: from __future__ import annotations to simplify typing May 24, 2024
@HitaloM HitaloM deleted the future-annotations branch May 24, 2024 22:56
tangyoha pushed a commit to tangyoha/hydrogram that referenced this pull request Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code style Changes in code style enhancement New feature, request or code enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants