Make CompilerSpec raise on __init__

This commit is contained in:
Massimiliano Culpo 2024-07-11 16:35:22 +02:00
parent d5bee0d4b0
commit 0595d0a9d0
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -606,6 +606,7 @@ class CompilerSpec:
__slots__ = "name", "versions"
def __init__(self, *args):
raise TypeError("CompilerSpec is being removed")
nargs = len(args)
if nargs == 1:
arg = args[0]