Skip to content

[BUG]Typing of console.save_html is overly strict. #3784

Open
@hardkrash

Description

@hardkrash

Describe the bug

Static type checkers will complain about the console.save_html(path: str, ... if you supply a pathlib.Path or other type allowed by the open builtin

Here is this specific example, but the other save_ functions have this typing defect as well

def save_html(

It would be preferable to match the typeshed parameter for open.

Platform
N/A, this is static code checking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions