Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Type Hints #354

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Jun 30, 2021

  1. Make package announce that it supports type hints

    Thibault Lemaire committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    ee35be6 View commit details
    Browse the repository at this point in the history
  2. Add minimal type stubs for manual testing

    Thibault Lemaire committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    8e64349 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. stubgen umongo/

    With some tweaks so
    
    `mypy umongo/`
    
    runs without errors.
    
    Those are only basic stubs they should be changed to appropriate types later
    Thibault Lemaire committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    3adaa49 View commit details
    Browse the repository at this point in the history
  2. Include .pyi files in package

    And steal some signatures from marshmallow's source code
    Thibault Lemaire committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    e02cb0e View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. Lean on dependencies that provide type hints

    Thibault Lemaire committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    dd5be8a View commit details
    Browse the repository at this point in the history
  2. Workaround dynamic imports

    Thibault Lemaire committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    1a537ba View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2021

  1. Enable linting of PyMongoInstance.find()

    Thibault Lemaire committed Jul 22, 2021
    Configuration menu
    Copy the full SHA
    bd3f3a1 View commit details
    Browse the repository at this point in the history