Skip to content

Commit

Permalink
Adjust some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fk3 committed Jan 31, 2024
1 parent e6fcaa5 commit 18eb79c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pysweepme/Architecture.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def extract_information(self):
"any",
f"any-{self._python_bitness_str}",
f"{self._python_version_str}-any",
f"{self._python_version_str}-{self._python_bitness_str}"
f"{self._python_version_str}-{self._python_bitness_str}",
]
self._information_extracted = True

Expand Down
3 changes: 3 additions & 0 deletions src/pysweepme/pysweepme_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

class FileIOContextProtocol(Protocol):
"""Protocol for a ContextManager for IO Operations."""

def __enter__(self) -> IO[Any]:
"""Function to return a file descriptor."""

Expand All @@ -48,6 +49,7 @@ class FileIOProtocolWithoutModifiedCheck(Protocol):
In contrast to Path's open(), this function does not return a file descriptor directly and instead always
must be used in conjunction with a `with` statement that will return the file descriptor of the opened file.
"""

def open( # noqa: A003, PLR0913
self,
mode: str = "r",
Expand All @@ -65,6 +67,7 @@ class FileIOProtocolWithModifiedCheck(FileIOProtocolWithoutModifiedCheck):
In contrast to Path's open(), this function does not return a file descriptor directly and instead always
must be used in conjunction with a `with` statement that will return the file descriptor of the opened file.
"""

def set_full_read(self) -> None:
"""Function that shall be called when a file is read completely.
Expand Down

0 comments on commit 18eb79c

Please sign in to comment.