Skip to content

Add typing #60

Open
Open

Description

@soulee-dev

Activity

  1. self-assigned this
    on Aug 23, 2023
  2. changed the title [-]Add typing (같이 하실분 구해요..[/-] [+]Add typing[/+] on Aug 23, 2023
  3. soulee-dev commented on Aug 23, 2023

    @soulee-dev
    Author

    Description

    Adding typing support to the python-mysql-replication library could significantly improve code quality and maintainability. Type annotations help developers understand code more quickly, prevent certain errors, and allow modern IDEs to provide better tooling and auto-completion.

    Scope

    I am suggesting to add typing gradually throughout the codebase, starting with the core modules and gradually extending to other areas. This approach will allow us to ensure that the changes are solid and working as expected.

    Proposal

    Here's a rough outline of the proposed changes:

    1. Add type hints to core classes and functions in the project.
    2. Utilize mypy or other static type checking tools to enforce type consistency.
    3. Gradually apply typing to other parts of the codebase.
    4. Update documentation to reflect the newly added types.

    And if you agree with this proposal, I'll write a PR quickly to start implementing the changes. Your support and collaboration in this enhancement would be greatly appreciated.

  4. soulee-dev commented on Aug 23, 2023

    @soulee-dev
    Author

    아마도 볼륨이 클것 같은데, 같이 해보면 좋을거 같아요~~!

  5. dongwook-chan commented on Aug 23, 2023

    @dongwook-chan

    같은 코드 정적 분석 계열 이슈인데, 인스턴스 변수인데도 불구하고 __init__에서 초기화가 안 될 경우 해당 변수에 대한 정적 분석이 동작하지 않을 수도 있습니다. 족보 없는 인스턴스 변수들도 색출해내면 좋을 것 같습니다!

  6. linked a pull request that will close this issuetyping - row_event.py #70on Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions