sdk/oapiSdk/lark_oapi/core/utils/strings.py

13 lines
262 B
Python

from typing import Optional
class Strings(object):
@staticmethod
def is_not_empty(s: Optional[str]) -> bool:
return not Strings.is_empty(s)
@staticmethod
def is_empty(s: Optional[str]) -> bool:
return s is None or len(s) == 0