erg/doc/scripts/mylib.d.er
2023-01-25 00:31:32 +09:00

12 lines
267 B
Python

re = pyimport "re"
.get_file_dirname!: () => Str
.path_join: (__a: Str, path: Str) => Str
.str_slice: (str: Str, first_index: Nat) => Str
'''
! this is unsafe
'''
.eliminate_none_on_match: (matched: re.Match or NoneType) -> {.matched = re.Match; .is_none = Bool}