Skip to content

I guess you meant timedelta? And this is for the internal API, isn't it? I'm guessing that's why it had the leading underscore. And timeouts are normally expressed in seconds (given that both the stdlib and AnyIO use it for timeouts/sleep calls); milliseconds as unit are much less often used. Documenting the unit is probably good enough, as importing timedelta may feel bothersome. #165

@sungigant

Description

@sungigant

I guess you meant timedelta? And this is for the internal API, isn't it? I'm guessing that's why it had the leading underscore. And timeouts are normally expressed in seconds (given that both the stdlib and AnyIO use it for timeouts/sleep calls); milliseconds as unit are much less often used. Documenting the unit is probably good enough, as importing timedelta may feel bothersome.

Originally posted by @agronholm in modelcontextprotocol/python-sdk#1078 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions