diff --git a/distutils/extension.py b/distutils/extension.py index f925987e..e0532734 100644 --- a/distutils/extension.py +++ b/distutils/extension.py @@ -107,7 +107,7 @@ def __init__( **kw, # To catch unknown keywords ): if not isinstance(name, str): - raise TypeError("'name' must be a string") # noqa: TRY004 + raise TypeError("'name' must be a string") # handle the string case first; since strings are iterable, disallow them if isinstance(sources, str):