Skip to content

Add type hinting #267

Open
Open

Description

@marksteward

SQLAlchemy 1.4 has pretty good hinting, so we should too.

Activity

  1. jkklapp commented on May 16, 2022

    @jkklapp

    I added a list of tasks so we can easily track the WIP in each of the files

    • sqlalchemy_continuum/init.py
    • sqlalchemy_continuum/builder.py
    • sqlalchemy_continuum/dialects
    • sqlalchemy_continuum/dialects/init.py
    • sqlalchemy_continuum/dialects/postgresql.py
    • sqlalchemy_continuum/exc.py
    • sqlalchemy_continuum/expression_reflector.py
    • sqlalchemy_continuum/factory.py
    • sqlalchemy_continuum/fetcher.py
    • sqlalchemy_continuum/manager.py
    • sqlalchemy_continuum/model_builder.py
    • sqlalchemy_continuum/operation.py
    • sqlalchemy_continuum/plugins
    • sqlalchemy_continuum/plugins/init.py
    • sqlalchemy_continuum/plugins/activity.py
    • sqlalchemy_continuum/plugins/base.py
    • sqlalchemy_continuum/plugins/flask.py
    • sqlalchemy_continuum/plugins/null_delete.py
    • sqlalchemy_continuum/plugins/property_mod_tracker.py
    • sqlalchemy_continuum/plugins/transaction_changes.py
    • sqlalchemy_continuum/plugins/transaction_meta.py
    • sqlalchemy_continuum/relationship_builder.py
    • sqlalchemy_continuum/reverter.py
    • sqlalchemy_continuum/schema.py
    • sqlalchemy_continuum/table_builder.py
    • sqlalchemy_continuum/transaction.py
    • sqlalchemy_continuum/unit_of_work.py
    • sqlalchemy_continuum/utils.py
    • sqlalchemy_continuum/version.py
  2. AbdealiLoKo commented on Aug 26, 2022

    @AbdealiLoKo
    Contributor

    I could get someone to help on this one if we would like to move ahead on it

    What would be the preferred approach?

    • typing within the .py code itself
    • typing with a separate .pyi file
    • typing in a separate repo like sqlalchemy-continuum-stubs
      ?

    I generally prefer adding types within the .py code itself

  3. stevleibelt commented on Sep 25, 2025

    @stevleibelt

    @marksteward and @jkklapp still needed or interested in?
    Else we should close it @AbdealiLoKo.

  4. marksteward commented on Sep 25, 2025

    @marksteward
    CollaboratorAuthor

    Definitely still desirable, and should be easier now we have linting.

  5. stevleibelt commented on Sep 26, 2025

    @stevleibelt

    @marksteward can you do it and create a merge request?

    Is it still needed here since sqlalchemy-history seams to be the newer continuum?

  6. marksteward commented on Sep 26, 2025

    @marksteward
    CollaboratorAuthor

    I've never heard of sqlalchemy-history before. I feel like you're replying on the wrong repo.

  7. stevleibelt commented on Sep 29, 2025

    @stevleibelt

    @marksteward

    No problem, I will try to rephrase.

    sqlalchemy-history is describing itself as "SQLAlchemy-history is a fork of sqlalchemy-continuum".
    Both projects are kind of active history vs continuum and as an end user like me, I have no idea which one to pick.
    My question to you was more like "have you made a look to sqlalchemy-history and check if they had implemented your feature wish already?"

  8. marksteward commented on Sep 29, 2025

    @marksteward
    CollaboratorAuthor

    Judging by commits, sqlalchemy-history looks like a fork made by a team who came here a while back with a bunch of requests for features they needed, and when asked to submit PRs dumped a load of badly written, untested code that made it extremely hard to review and prioritise. They didn't mention they were creating a fork, but it looks like they're happy to do their own thing so that's probably the best outcome. It looks like they all work(ed) at Corridor Platforms, so you probably want to decide whether you're happy tying your code to that company.

  9. AbdealiLoKo commented on Sep 29, 2025

    @AbdealiLoKo
    Contributor

    I really liked continuum and had submitted many PRs for situations where continuum wasn't sufficient for my usage. But at the time continuum wasn't ready for a major release: #292 (comment)

    Later I created the fork Sqlalchemy-history ... and so that it doesn't get dependent on just me, moved it to my company's organization so others could maintain it

    Sorry to hear the note on bad code, was trying my best to contribute to the project so that others facing the same challenges i faced, could benefit from the solutions I had found...

  10. marksteward commented on Sep 29, 2025

    @marksteward
    CollaboratorAuthor

    @AbdealiLoKo sorry to make it sound like I didn't appreciate your work, I do. It's really that the amount of code to review was too much when we were struggling to deal with things like not being on a supported Python version!

    I think if you can document the ways your code diverges from sqlalchemy-continuum, and explain why someone might want to use yours, that would be useful. I'd be more than happy to add a link to sqlalchemy-history with that explanation if you like.

  11. stevleibelt commented on Oct 1, 2025

    @stevleibelt

    @AbdealiLoKo and @marksteward

    I didn't ever want to hurt somebody's feeling. Sorry for that. I was hoping that this was just a natural way of open source software where forking is popular and can lead to fixes in either one or another sense.
    @AbdealiLoKo I am more than thankful to you and your pushed code.

    Is there anything we can do to improve the situation?
    Is there a way to combine the two projects easily? As @marksteward wrote already, there is a lot of code to go through to figure out how to make a step to combine both projects including their communities.

  12. added
    pinned
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pinned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions