##// 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 638 dict_keys: Type[collections.abc.KeysView] = type({}.keys())
639 639 method_descriptor: Any = type(list.copy)
640 module = type(builtins)
640 641
641 642 NUMERICS = {int, float, complex}
642 643
@@ -686,6 +687,7 b' BUILTIN_GETATTR: Set[MayHaveGetattr] = {'
686 687 *NUMERICS,
687 688 dict_keys,
688 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