mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-19 01:14:45 -05:00
Apply refurb/ruff rule FURB111 (#11837)
This commit is contained in:
@@ -107,7 +107,7 @@ class ASTBaseBase:
|
||||
raise NotImplementedError(repr(self))
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self._stringify(lambda ast: str(ast))
|
||||
return self._stringify(str)
|
||||
|
||||
def get_display_string(self) -> str:
|
||||
return self._stringify(lambda ast: ast.get_display_string())
|
||||
|
||||
Reference in New Issue
Block a user