Skip to content

Commit

Permalink
Use backwards-compatible Enum base class
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Aug 30, 2023
1 parent c762271 commit 3a6ec03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/archery/archery/lang/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

from contextlib import contextmanager
from enum import EnumType
from enum import EnumMeta
import inspect
import tokenize

Expand Down Expand Up @@ -115,7 +115,7 @@ def inspect_signature(obj):
class NumpyDoc:
IGNORE_VALIDATION_ERRORS_FOR_TYPE = {
# Enum function signatures should never be documented
EnumType: ["PR01"]
EnumMeta: ["PR01"]
}

def __init__(self, symbols=None):
Expand Down

0 comments on commit 3a6ec03

Please sign in to comment.