Skip to content

Commit

Permalink
remove unquote
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Jan 24, 2024
1 parent 1ddd148 commit 9f31377
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/pytest_beartype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
import pytest


def _unquote(string: str) -> str:
"""Remove single and double quotes from a string."""
if len(string) < 2:
return string

if string.startswith("'") and string.endswith("'"):
return string[1:-1]
if string.startswith('"') and string.endswith('"'):
return string[1:-1]

return string


def pytest_addoption(parser: "pytest.Parser") -> None:
# Add beartype-specific "pytest" options exposed by this plugin.
help_msg = (
Expand Down

0 comments on commit 9f31377

Please sign in to comment.