mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
12 lines
267 B
Python
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}
|