Skip to content

Daily tests failed on Sat Jun 07 2025 #14229

Closed

Description

@github-actions

Activity

  1. added
    help wantedAn actionable problem of low to medium complexity where a PR would be very welcome
    on Jun 7, 2025
  2. brianschubert commented on Jun 7, 2025

    @brianschubert
    Collaborator

    Authlib stubtest:

    error: authlib.jose.rfc7518.jws_algs.HMACAlgorithm.SHA256 variable differs from runtime type def (string: Any =, *, usedforsecurity: Any =) -> Any
    Stub: in file /home/runner/work/typeshed/typeshed/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi:14
    def (data: _collections_abc.Buffer =, *, usedforsecurity: builtins.bool =, string: Union[_collections_abc.Buffer, None] =) -> _hashlib.HASH
    Runtime:
    def (string=b'', *, usedforsecurity=True)
    
    error: authlib.jose.rfc7518.jws_algs.HMACAlgorithm.SHA384 variable differs from runtime type def (string: Any =, *, usedforsecurity: Any =) -> Any
    Stub: in file /home/runner/work/typeshed/typeshed/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi:15
    def (data: _collections_abc.Buffer =, *, usedforsecurity: builtins.bool =, string: Union[_collections_abc.Buffer, None] =) -> _hashlib.HASH
    Runtime:
    def (string=b'', *, usedforsecurity=True)
    
    error: authlib.jose.rfc7518.jws_algs.HMACAlgorithm.SHA512 variable differs from runtime type def (string: Any =, *, usedforsecurity: Any =) -> Any
    Stub: in file /home/runner/work/typeshed/typeshed/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi:16
    def (data: _collections_abc.Buffer =, *, usedforsecurity: builtins.bool =, string: Union[_collections_abc.Buffer, None] =) -> _hashlib.HASH
    Runtime:
    def (string=b'', *, usedforsecurity=True)
    
    Found 3 errors (checked 161 modules)
    
  3. brianschubert commented on Jun 7, 2025

    @brianschubert
    Collaborator

    Looks like Authlib re-exports some hashlib.sha* functions. The signatures of these functions changed in the recent 3.13.4 patch release (python/cpython#134962). Probably just need to add an allowlist entry until the job consistently runs with 3.13.4+.

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

    help wantedAn actionable problem of low to medium complexity where a PR would be very welcome

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions