From 9f3137745fe0df90e8136807e1039ff154c4e611 Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Wed, 24 Jan 2024 19:44:53 +0530 Subject: [PATCH] remove unquote --- src/pytest_beartype/__init__.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/pytest_beartype/__init__.py b/src/pytest_beartype/__init__.py index 8d8435a..94873bb 100644 --- a/src/pytest_beartype/__init__.py +++ b/src/pytest_beartype/__init__.py @@ -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 = (