Skip to content

Commit

Permalink
Fix docstring missing quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Feb 6, 2025
1 parent d637764 commit 9d1b4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion breathe/directives/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def stripDeclarator(declarator):
def _create_function_signature(
self, node_stack, project_info, filter_, target_handler, mask_factory, directive_args
) -> str:
"Standard render process used by subclasses"
"""Standard render process used by subclasses."""

try:
object_renderer = SphinxRenderer(
Expand Down
4 changes: 2 additions & 2 deletions breathe/filetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def get_pygments_alias(filename: str) -> str | None:
"Find first pygments alias from filename"
"""Find first pygments alias from filename."""
try:
lexer_cls = get_lexer_for_filename(filename)
return lexer_cls.aliases[0] # type: ignore[attr-defined]
Expand All @@ -21,7 +21,7 @@ def get_pygments_alias(filename: str) -> str | None:


def get_extension(filename: str) -> str:
"Get extension from filename"
"""Get extension from filename."""
# If the filename is just '.ext' then we get ('.ext', '') so we fall back to first part if
# the second isn't there
(first, second) = os.path.splitext(filename)
Expand Down

0 comments on commit 9d1b4e0

Please sign in to comment.