Skip to content

docs: fix RouteMatrixElement duration return types#1

Open
HariNayan wants to merge 1 commit into
mainfrom
HariNayan-patch-1
Open

docs: fix RouteMatrixElement duration return types#1
HariNayan wants to merge 1 commit into
mainfrom
HariNayan-patch-1

Conversation

@HariNayan
Copy link
Copy Markdown
Owner

@HariNayan HariNayan commented May 16, 2026

What kind of change does this PR introduce?
docs

What is the current behavior?
Fixes googleapis#16522RouteMatrixElement.duration and static_duration
are documented as google.protobuf.duration_pb2.Duration but return
datetime.timedelta at runtime due to proto-plus marshalling.

What is the new behavior?
Documentation now correctly reflects datetime.timedelta as the return type.

Fixes googleapis#16522

Updated the RouteMatrixElement documentation to reflect that
duration and static_duration are returned as datetime.timedelta
objects at runtime rather than google.protobuf.duration_pb2.Duration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs say RouteMatrixElement.duration is Duration, but runtime returns datetime.timedelta

1 participant