Skip to content

Commit ebcdcfd

Browse files
committed
Remove workaround for python/typeshed#10328.
1 parent 2c43cfe commit ebcdcfd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

importlib_metadata/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,11 +1108,7 @@ def _get_toplevel_name(name: PackagePath) -> str:
11081108
# Defer import of inspect for performance (python/cpython#118761)
11091109
import inspect
11101110

1111-
return _topmost(name) or (
1112-
# python/typeshed#10328
1113-
inspect.getmodulename(name) # type: ignore
1114-
or str(name)
1115-
)
1111+
return _topmost(name) or (inspect.getmodulename(name) or str(name))
11161112

11171113

11181114
def _top_level_inferred(dist):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy