Skip to content

Failed to infer the type of .parent for pathlib.PurePath/pathlib.Path/... #1502

@ynty

Description

@ynty

Summary

Failed to resolve the type of PurePath.parent/Path.parent in pathlib, the type is inferred as Unknown.

Minimal Reproducible Example

  1. A GitHub Repository is here, you can clone and open it with Zed.
  2. ty Playground is here.
Image Image Image

Version

ty 0.0.1-alpha.25 (3abd4c9 2025-10-29)

Metadata

Metadata

Assignees

Labels

attribute accessInstance attributes, class attributes, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions