##// END OF EJS Templates
Allow safe access to the __getattribute__ method of modules...
Carlos Cordoba -
Show More
@@ -637,6 +637,7 b' set_non_mutating_methods = set(dir(set)) & set(dir(frozenset))'
637
637
638 dict_keys: Type[collections.abc.KeysView] = type({}.keys())
638 dict_keys: Type[collections.abc.KeysView] = type({}.keys())
639 method_descriptor: Any = type(list.copy)
639 method_descriptor: Any = type(list.copy)
640 module = type(builtins)
640
641
641 NUMERICS = {int, float, complex}
642 NUMERICS = {int, float, complex}
642
643
@@ -686,6 +687,7 b' BUILTIN_GETATTR: Set[MayHaveGetattr] = {'
686 *NUMERICS,
687 *NUMERICS,
687 dict_keys,
688 dict_keys,
688 method_descriptor,
689 method_descriptor,
690 module,
689 }
691 }
690
692
691
693
General Comments 0
You need to be logged in to leave comments. Login now