mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-12-18 19:55:42 +08:00
20 lines
312 B
Python
Executable File
20 lines
312 B
Python
Executable File
"""
|
|
Module docs
|
|
"""
|
|
from typing import TypeAlias
|
|
|
|
|
|
class Nil():
|
|
def __eq__(self, other):
|
|
if isinstance(other, Nil):
|
|
return True
|
|
return other is None
|
|
|
|
# 不等于
|
|
def __ne__(self, other):
|
|
return not self.__eq__(other)
|
|
|
|
|
|
nil = Nil()
|
|
|
|
err: TypeAlias = Exception | Nil |