File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1818import sys
1919from functools import cached_property
2020from dataclasses import dataclass , field
21+ from types import MethodDescriptorType , ModuleType
2122
2223from IPython .utils .docs import GENERATING_DOCUMENTATION
2324from IPython .utils .decorators import undoc
@@ -630,8 +631,6 @@ def _list_methods(cls, source=None):
630631
631632
632633dict_keys : Type [collections .abc .KeysView ] = type ({}.keys ())
633- method_descriptor : Any = type (list .copy )
634- module = type (builtins )
635634
636635NUMERICS = {int , float , complex }
637636
@@ -680,8 +679,8 @@ def _list_methods(cls, source=None):
680679 type , # `type` handles a lot of generic cases, e.g. numbers as in `int.real`.
681680 * NUMERICS ,
682681 dict_keys ,
683- method_descriptor ,
684- module ,
682+ MethodDescriptorType ,
683+ ModuleType ,
685684}
686685
687686
You can’t perform that action at this time.
0 commit comments