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

Update dependencies #3082

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Commits on Sep 30, 2024

  1. Update dependencies

    Breaking Changes of direct python deps:
    - Cryptography:
      * Dropped support for OpenSSL < 1.1.1e
      * Dropped support for LibreSSL < 3.8
    - Icalendar:
      * Use zoneinfo instead of pytz
    david-venhoff committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    943e43c View commit details
    Browse the repository at this point in the history
  2. Fix typo

    david-venhoff committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    2f6db21 View commit details
    Browse the repository at this point in the history
  3. Fix preact setter types

    We were using the typ `StateUpdater<_>` for setters, but the type of
    `StateUpdater<T>` just resolves to `T | ((prevState: T) => T)`, which
    means that it is not guaranteed to be callable.
    
    The preact documentation is not really helpful:
    https://preactjs.com/guide/v10/typescript/#typing-hooks
    
    But in the source of `useState`, the setter is typed as
    `Dispatch<StateUpdater<T>>`, so I decide to use the same type.
    david-venhoff committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    cf10818 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e75a0d2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    70f3844 View commit details
    Browse the repository at this point in the history
  6. Adjust for new pylint-lint too-many-positional-arguments

    Due to many positives, I changed the value from 5 to 6 and
    manually annotated the remaining occurrences with too many
    positives, in the hopes that we will fix that at some point :)
    david-venhoff committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    90f08fc View commit details
    Browse the repository at this point in the history
  7. Fix mypy

    Mypy has a better inference now, and detected a new false-positive
    (I think)
    david-venhoff committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    292425a View commit details
    Browse the repository at this point in the history
  8. Fix tests

    deepl now returns the number of billded characters, which we
    need to mimick in the fake deepl api server
    david-venhoff committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    f48a605 View commit details
    Browse the repository at this point in the history