Skip to content

No overload of bound method __init__ matches arguments for tempfile.TemporaryDirectory #370

@divaltor

Description

@divaltor

Summary

Python 3.13.3

https://play.ty.dev/2ca5385c-da70-4f1b-b4d3-e4e15b5f9c6c

import tempfile

# No overload of bound method `__init__` matches argumentsty(lint:no-matching-overload)
with tempfile.TemporaryDirectory() as tmp:
    ....

Not sure that is intented behaviour, pyright doesn't mark it as an error.

Probably related issue - #274

Version

v.0.0.7a (from VS Code extension)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggenericsBugs or features relating to ty's generics implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions