Skip to content

Have os.PathLike inherit from typing.Protocol #83066

Closed

Description

@brettcannon
BPO 38885
Nosy @brettcannon

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2019-11-21.19:50:07.710>
created_at = <Date 2019-11-21.19:49:42.040>
labels = ['library', '3.9']
title = 'Have os.PathLike inherit from typing.Protocol'
updated_at = <Date 2019-11-21.19:50:07.708>
user = 'https://github.com/brettcannon'

bugs.python.org fields:

activity = <Date 2019-11-21.19:50:07.708>
actor = 'brett.cannon'
assignee = 'none'
closed = True
closed_date = <Date 2019-11-21.19:50:07.710>
closer = 'brett.cannon'
components = ['Library (Lib)']
creation = <Date 2019-11-21.19:49:42.040>
creator = 'brett.cannon'
dependencies = []
files = []
hgrepos = []
issue_num = 38885
keywords = []
message_count = 2.0
messages = ['357206', '357207']
nosy_count = 1.0
nosy_names = ['brett.cannon']
pr_nums = []
priority = 'normal'
resolution = 'rejected'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue38885'
versions = ['Python 3.9']

Activity

  1. brettcannon commented on Nov 21, 2019

    @brettcannon
    MemberAuthor

    Since os.PathLike explicitly defines a a protocol, it would make sense to have it inherit from typing.Protocol instead of abc.ABC.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 21, 2019
  3. brettcannon commented on Nov 21, 2019

    @brettcannon
    MemberAuthor

    Closing as importing 'typing' in 'os' is probably too much and would impact start-up time.

  4. transferred this issue fromon Apr 10, 2022
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

    3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions