We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 549ba49 commit c708a4cCopy full SHA for c708a4c
1 file changed
Tools/refcounts/lint.py
@@ -2,13 +2,13 @@
2
3
from __future__ import annotations
4
5
-import enum
6
import itertools
7
import re
8
import sys
9
import tomllib
10
from argparse import ArgumentParser, RawDescriptionHelpFormatter
11
from dataclasses import dataclass, field
+from enum import Enum
12
from pathlib import Path
13
from typing import TYPE_CHECKING
14
@@ -74,10 +74,10 @@ def is_c_parameter_name(name: str) -> bool:
74
return name == C_ELLIPSIS or name.isidentifier()
75
76
77
-class Effect(enum.Enum):
+class Effect(Enum):
78
"""The reference count effect of a parameter or a return value."""
79
80
- UNKNOWN = enum.auto()
+ UNKNOWN = None
81
"""Indicate an unparsable reference count effect.
82
83
Such annotated entities are reported during the checking phase.
0 commit comments