Skip to content

Commit c708a4c

Browse files
committed
address Alex's review
1 parent 549ba49 commit c708a4c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/refcounts/lint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
from __future__ import annotations
44

5-
import enum
65
import itertools
76
import re
87
import sys
98
import tomllib
109
from argparse import ArgumentParser, RawDescriptionHelpFormatter
1110
from dataclasses import dataclass, field
11+
from enum import Enum
1212
from pathlib import Path
1313
from typing import TYPE_CHECKING
1414

@@ -74,10 +74,10 @@ def is_c_parameter_name(name: str) -> bool:
7474
return name == C_ELLIPSIS or name.isidentifier()
7575

7676

77-
class Effect(enum.Enum):
77+
class Effect(Enum):
7878
"""The reference count effect of a parameter or a return value."""
7979

80-
UNKNOWN = enum.auto()
80+
UNKNOWN = None
8181
"""Indicate an unparsable reference count effect.
8282
8383
Such annotated entities are reported during the checking phase.

0 commit comments

Comments
 (0)