Skip to content

Path.cwd() is missing a return type annotation #243

Description

@purplezimmermann

Mypy reports:

error: Call to untyped function "cwd" of "Path" in typed context  [no-untyped-call]

–& indeed:

path/path/__init__.py

Lines 254 to 259 in 0f86209

def cwd(cls):
"""Return the current working directory as a path object.
.. seealso:: :func:`os.getcwd`
"""
return cls(os.getcwd())

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions