Skip to content

connection: align remaining PageInfoType members as properties#50

Open
jeffreylo wants to merge 1 commit intographql-python:mainfrom
jeffreylo:jlo/page-info-type-properties
Open

connection: align remaining PageInfoType members as properties#50
jeffreylo wants to merge 1 commit intographql-python:mainfrom
jeffreylo:jlo/page-info-type-properties

Conversation

@jeffreylo
Copy link

This patch adds the @property decorator to endCursor, hasPreviousPage, and hasNextPage in the PageInfoType Protocol. Previously, only startCursor was defined as a property, creating an inconsistency where other members appeared as callable methods. The PageInfo implementation exposes these fields as attributes, not methods. Correctly marking them as properties in the Protocol ensures static analysis and IDEs reflect the actual usage.

This patch adds the `@property` decorator to `endCursor`, `hasPreviousPage`,
and `hasNextPage` in the `PageInfoType` Protocol. Previously, only
`startCursor` was defined as a property, creating an inconsistency where
other members appeared as callable methods. The `PageInfo` implementation
exposes these fields as attributes, not methods. Correctly marking them as
properties in the Protocol ensures static analysis and IDEs reflect the
actual usage.
@jeffreylo jeffreylo requested a review from Cito as a code owner February 13, 2026 06:05
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.

1 participant