Skip to content

Commit

Permalink
🔨 refactor: removing unneeded type stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
rduo1009 committed Jan 20, 2025
1 parent 43404a3 commit 77cb00c
Show file tree
Hide file tree
Showing 346 changed files with 622 additions and 19,074 deletions.
97 changes: 0 additions & 97 deletions stubs/aenum/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,99 +1,2 @@
from typing import NamedTuple as NamedTuple

from ._common import *
from ._constant import *
from ._enum import *
from ._tuple import *

__all__ = [
"NamedConstant",
"Constant",
"constant",
"skip",
"nonmember",
"member",
"no_arg",
"Member",
"NonMember",
"bin",
"Enum",
"IntEnum",
"AutoNumberEnum",
"OrderedEnum",
"UniqueEnum",
"StrEnum",
"UpperStrEnum",
"LowerStrEnum",
"ReprEnum",
"Flag",
"IntFlag",
"enum_property",
"AddValue",
"MagicValue",
"MultiValue",
"NoAlias",
"Unique",
"AddValueEnum",
"MultiValueEnum",
"NoAliasEnum",
"enum",
"extend_enum",
"unique",
"property",
"NamedTuple",
"_reduce_ex_by_name",
"FlagBoundary",
"STRICT",
"CONFORM",
"EJECT",
"KEEP",
"add_stdlib_integration",
"remove_stdlib_integration",
"AutoEnum",
]

# Names in __all__ with no definition:
# AddValue
# AddValueEnum
# AutoEnum
# AutoNumberEnum
# CONFORM
# Constant
# EJECT
# Enum
# Flag
# FlagBoundary
# IntEnum
# IntFlag
# KEEP
# LowerStrEnum
# MagicValue
# Member
# MultiValue
# MultiValueEnum
# NamedConstant
# NamedTuple
# NoAlias
# NoAliasEnum
# NonMember
# OrderedEnum
# ReprEnum
# STRICT
# StrEnum
# Unique
# UniqueEnum
# UpperStrEnum
# _reduce_ex_by_name
# add_stdlib_integration
# bin
# constant
# enum
# enum_property
# extend_enum
# member
# no_arg
# nonmember
# property
# remove_stdlib_integration
# skip
# unique
127 changes: 0 additions & 127 deletions stubs/aenum/_common.pyi
Original file line number Diff line number Diff line change
@@ -1,116 +1,7 @@
from collections import OrderedDict as OrderedDict
from operator import abs as _abs_
from operator import add as _add_
from operator import and_ as _and_
from operator import floordiv as _floordiv_
from operator import inv as _inv_
from operator import lshift as _lshift_
from operator import mod as _mod_
from operator import mul as _mul_
from operator import neg as _neg_
from operator import or_ as _or_
from operator import pos as _pos_
from operator import pow as _pow_
from operator import rshift as _rshift_
from operator import sub as _sub_
from operator import truediv as _truediv_
from operator import xor as _xor_

from _typeshed import Incomplete

from ._py3 import *

__all__ = [
"pyver",
"PY2",
"PY2_6",
"PY3",
"PY3_3",
"PY3_4",
"PY3_5",
"PY3_6",
"PY3_7",
"PY3_11",
"_or_",
"_and_",
"_xor_",
"_inv_",
"_abs_",
"_add_",
"_floordiv_",
"_lshift_",
"_rshift_",
"_mod_",
"_mul_",
"_neg_",
"_pos_",
"_pow_",
"_truediv_",
"_sub_",
"unicode",
"basestring",
"baseinteger",
"long",
"NoneType",
"_Addendum",
"is_descriptor",
"is_dunder",
"is_sunder",
"is_internal_class",
"is_private_name",
"get_attr_from_chain",
"_value",
"constant",
"make_class_unpicklable",
"bltin_property",
"skip",
"nonmember",
"member",
"Member",
"NonMember",
"OrderedDict",
]

pyver: tuple[int, int]
PY2: bool
PY3: bool
PY2_6: tuple[int, int]
PY3_3: tuple[int, int]
PY3_4: tuple[int, int]
PY3_5: tuple[int, int]
PY3_6: tuple[int, int]
PY3_7: tuple[int, int]
PY3_11: tuple[int, int]
bltin_property = property
unicode = unicode
unicode = str
basestring: Incomplete
baseinteger: Incomplete
long = long
long = int
baseint = baseinteger
NoneType: Incomplete

class _Addendum:
dict: Incomplete
ns: Incomplete
added: Incomplete
def __init__(
self, dict: Incomplete, doc: Incomplete, ns: Incomplete
) -> None: ...
def __call__(self, func: Incomplete) -> Incomplete: ...
def __getitem__(self, name: Incomplete) -> Incomplete: ...
def __setitem__(self, name: Incomplete, value: Incomplete) -> None: ...
def resolve(self) -> Incomplete: ...

def is_descriptor(obj: Incomplete) -> Incomplete: ...
def is_dunder(name: Incomplete) -> Incomplete: ...
def is_sunder(name: Incomplete) -> Incomplete: ...
def is_internal_class(cls_name: Incomplete, obj: Incomplete) -> Incomplete: ...
def is_private_name(cls_name: Incomplete, name: Incomplete) -> Incomplete: ...
def get_attr_from_chain(cls: Incomplete, attr: Incomplete) -> Incomplete: ...
def _value(obj: Incomplete) -> Incomplete: ...

class constant:
value: Incomplete
__doc__: Incomplete
Expand Down Expand Up @@ -152,21 +43,3 @@ class constant:
def __set_name__(
self, ownerclass: Incomplete, name: Incomplete
) -> None: ...

def make_class_unpicklable(obj: Incomplete) -> None: ...

class NonMember:
value: Incomplete
def __init__(self, value: Incomplete) -> None: ...
def __get__(
self, instance: Incomplete, ownerclass: Incomplete | None = None
) -> Incomplete: ...

skip = NonMember
nonmember = NonMember

class Member:
value: Incomplete
def __init__(self, value: Incomplete) -> None: ...

member = Member
37 changes: 0 additions & 37 deletions stubs/aenum/_constant.pyi

This file was deleted.

Loading

0 comments on commit 77cb00c

Please sign in to comment.