Skip to content

typedefs

Class info

Classes

Name Children Inherits
NamedStream
configz.typedefs
A stream that knows where it was opened from (e.g. a file object).

    🛈 DocStrings

    NamedStream

    Bases: Protocol

    A stream that knows where it was opened from (e.g. a file object).

    Source code in src/configz/typedefs.py
    @runtime_checkable
    class NamedStream(Protocol):
        """A stream that knows where it was opened from (e.g. a file object)."""
    
        name: object  # str or bytes path, or an int for file descriptors