Skip to content

Instantly share code, notes, and snippets.

🤖
<unk> <unk> <unk>

Zecong Hu huzecong

🤖
<unk> <unk> <unk>
Block or report user

Report or block huzecong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@huzecong
huzecong / options.py
Last active Aug 15, 2019
A super-enhanced version of namedtuple that supports multiple inheritance and arbitrary field orders.
View options.py
import collections
import typing
__all__ = [
"Options",
]
class OptionsMeta(typing.NamedTupleMeta):
def __new__(mcs, typename, bases, namespace):
You can’t perform that action at this time.