mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 17:33:30 -05:00
refactor: annotate every remaining signature
This commit is contained in:
1 parent
5961b6bfe7
commit
faa8af0800
52 files changed
+261
-145
No files matched your search
@@ -17,7 +17,7 @@ import os
|
||||
# and a page is only removed once nothing produced it.
|
||||
_produced: set[str] = set()
|
||||
|
||||
def _record(path) -> None:
|
||||
def _record(path: str | Path) -> None:
|
||||
_produced.add(os.path.realpath(str(path)))
|
||||
|
||||
def _undecorated(markdown: str) -> str:
|
||||
@@ -43,7 +43,7 @@ def write_if_changed(path: str, content: str) -> bool:
|
||||
_record(path)
|
||||
return _write_artifact(path, content, normalize=_undecorated)
|
||||
|
||||
def write_decorated(path, content: str) -> bool:
|
||||
def write_decorated(path: str | Path, content: str) -> bool:
|
||||
"""Write the wrapped page, comparing front matter and body together."""
|
||||
_record(path)
|
||||
return _write_artifact(str(path), content)
|
||||
|
||||
Reference in new issue
Block a user