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

Type-hints: update to pass mypy checks with types-docutils 0.21.0.20240704 #12511

Commits on Jul 4, 2024

  1. Type-hints: update to pass mypy checks with types-docutils update fro…

    …m 2024-07-04.
    
      * Reporter.get_source_and_line is added at runtime by
        the ``RSTState.runtime_init`` method.
      * Pass the RST parser state's ``Inliner`` when calling class roles
        (could this reflect an interface change, or is it a bug?).
      * Add a RST-parser-context generic type argument to ``RSTState``
        type-hints.
    jayaddison committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    1b04ddb View commit details
    Browse the repository at this point in the history
  2. Tests: type-hints: update to pass mypy checks.

    A TypeVar is _not_ added here; the RSTState's generic type argument would only appear in a function return signature, and I'm not sure I can figure out what it _should_ be based on the way an RSTState object is instantiated.
    
    Relates-to commit 1b04ddb.
    jayaddison committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    ba2abcc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8fc3a85 View commit details
    Browse the repository at this point in the history
  4. Revert "Type-hints: revert behaviour-change in state.inliner paramete…

    …r-passing from commit 1b04ddb."
    
    This reverts commit 8fc3a85.
    jayaddison committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    e2e59bc View commit details
    Browse the repository at this point in the history
  5. Type-hints: workaround: partially-replace typevar usage from commit 1…

    …b04ddb with ``Any`` generic type arg.
    jayaddison committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    4ff9627 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Configuration menu
    Copy the full SHA
    3378b0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7bc74ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c31b252 View commit details
    Browse the repository at this point in the history
  4. Use list[str]

    AA-Turner committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    3f77102 View commit details
    Browse the repository at this point in the history