📦 docs: 资源商店新增发布资源功能
This commit is contained in:
20
liteyuki_flow/typ.py
Normal file
20
liteyuki_flow/typ.py
Normal file
@ -0,0 +1,20 @@
|
||||
"""
|
||||
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
|
Reference in New Issue
Block a user