Skip to content

Commit

Permalink
gh-104050: Don't star-import 'types' in Argument Clinic (#104543)
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland authored May 16, 2023
1 parent 505e295 commit c22fced
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
import sys
import textwrap
import traceback
import types

from collections.abc import Callable
from types import *
from types import FunctionType, NoneType
from typing import Any, NamedTuple

# TODO:
Expand Down Expand Up @@ -4037,7 +4036,7 @@ def eval_ast_expr(node, globals, *, filename='-'):

node = ast.Expression(node)
co = compile(node, filename, 'eval')
fn = types.FunctionType(co, globals)
fn = FunctionType(co, globals)
return fn()


Expand Down

0 comments on commit c22fced

Please sign in to comment.