Skip to content

Commit

Permalink
Remove unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Jul 12, 2020
1 parent 09d7bff commit 83e47b1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/betterproto/enum.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
from enum import EnumMeta as _EnumMeta, _is_dunder
from enum import EnumMeta as _EnumMeta, _is_dunder, _is_descriptor
from types import MappingProxyType
from typing import Any, Dict, Iterable, List, Mapping, NoReturn, Tuple

from .casing import camel_case, snake_case


def _is_descriptor(obj: Any) -> bool:
return (
hasattr(obj, "__get__") or hasattr(obj, "__set__") or hasattr(obj, "__delete__")
)


class EnumMember:
_actual_enum_cls_: "EnumMeta"
name: str
Expand Down

0 comments on commit 83e47b1

Please sign in to comment.