mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-26 00:05:06 +08:00
20 lines
312 B
Python
20 lines
312 B
Python
"""
|
|
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 |