Skip to content

Commit

Permalink
Update python/lib/core/dmod/core/common/reader.py
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Raney <[email protected]>
  • Loading branch information
christophertubbs and aaraney committed Apr 4, 2024
1 parent 73122f4 commit 6119d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lib/core/dmod/core/common/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def seek(self, offset: int, whence: int = SEEK_SET) -> int:
""" Change the position to the given offset, returning the absolute position. """


class ReadSeeker(Reader, Seeker):
@runtime_checkable
class ReadSeeker(Reader, Seeker, Protocol):
"""
A :class:`Reader` capable of changing the position from which it is reading.
"""

0 comments on commit 6119d6c

Please sign in to comment.