Commit f5bdaf59 authored by Eckhart Arnold's avatar Eckhart Arnold

- repair cython compatibility

parent 29f092d0
......@@ -46,7 +46,7 @@ except ImportError:
__all__ = ('StringView', 'EMPTY_STRING_VIEW', 'cython_optimized')
def first_char(text: str, begin: int, end: int, chars: str) -> int:
def first_char(text, begin: int, end: int, chars) -> int:
"""Returns the index of the first non-whitespace character in string
`text` within the bounds [begin, end].
"""
......@@ -55,7 +55,7 @@ def first_char(text: str, begin: int, end: int, chars: str) -> int:
return begin
def last_char(text, begin: int, end: int, chars: str) -> int:
def last_char(text, begin: int, end: int, chars) -> int:
"""Returns the index of the first non-whitespace character in string
`text` within the bounds [begin, end].
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment