Skip to content

2025: Code climate #2068

@stanislaw

Description

@stanislaw

Previous: #1912
Next: TBD


General

Flaky end2end tests

Type system epic

Code coverage epic

  • Windows-related code lines, e.g., strictdoc/server/app.py.
  • Must never reach here errors.
  • end2end for --reload is missing. strictdoc/server/server.py.

        pygmented_source_file_lines: List[Union[str, RangeMarkerTuple]] = list(

This is for mypy... Honestly I don't understand why we have to make a list()-copy of pygmented_source_file_content.split("\n"). Without list(), mypy would claim

error: Incompatible types in assignment (expression has type "List[str]", variable has type "List[Union[str, RangeMarkerTuple]]")

I know assignment would be a problem without explicit annotation of pygmented_source_file_lines because of list invariance. But the annotation is there... why do we still need list()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions