mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-19 14:40:30 +08:00
Update most test/lint dependencies (#15582)
This commit is contained in:
@@ -50,7 +50,7 @@ PYTHON_VERSION: Final = f"{sys.version_info.major}.{sys.version_info.minor}"
|
||||
|
||||
|
||||
def strip_comments(text: str) -> str:
|
||||
return text.split("#")[0].strip()
|
||||
return text.split("#", maxsplit=1)[0].strip()
|
||||
|
||||
|
||||
def jsonc_to_json(text: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user