Skip to content

Add type annotations to tests #1108

@PerchunPak

Description

@PerchunPak

This would involve removing this line

mcstatus/pyproject.toml

Lines 172 to 174 in b11ac63

[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"ANN", # flake8-annotations

And fixing all of the issues that ruff raises.

I do remember that pytest does not expose type annotations for some of the built-in fixtures (the class itself is in a _ prefixed module), but I don't remember which one

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions