Skip to content

Commit

Permalink
Those who slipped under the radar
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Sep 30, 2024
1 parent 3acbac6 commit a4f849f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pubnub/endpoints/access/grant_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def validate_params(self):
def create_response(self, envelope) -> PNGrantTokenResult:
return PNGrantTokenResult.from_json(envelope['data'])

def sync(self):
return super().sync()
def sync(self) -> PNGrantTokenResultEnvelope:
return PNGrantTokenResultEnvelope(super().sync())

def is_auth_required(self):
return False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def is_auth_required(self):
def create_response(self, envelope) -> PNChannelGroupsRemoveChannelResult:
return PNChannelGroupsRemoveChannelResult()

def sync(self):
def sync(self) -> PNChannelGroupsRemoveChannelResultEnvelope:
return PNChannelGroupsRemoveChannelResultEnvelope(super().sync())

def request_timeout(self):
Expand Down
4 changes: 2 additions & 2 deletions pubnub/endpoints/objects_v2/memberships/get_memberships.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def validate_specific_params(self):
def create_response(self, envelope) -> PNGetMembershipsResult:
return PNGetMembershipsResult(envelope)

def sync(self):
return super().sync()
def sync(self) -> PNGetMembershipsResultEnvelope:
return PNGetMembershipsResultEnvelope(super().sync())

def operation_type(self):
return PNOperationType.PNGetMembershipsOperation
Expand Down
3 changes: 3 additions & 0 deletions pubnub/endpoints/objects_v2/uuid/get_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def validate_specific_params(self):
def create_response(self, envelope) -> PNGetUUIDMetadataResult:
return PNGetUUIDMetadataResult(envelope)

def sync(self) -> PNGetUUIDMetadataResultEnvelope:
return PNGetUUIDMetadataResultEnvelope(super().sync())

def operation_type(self):
return PNOperationType.PNGetUuidMetadataOperation

Expand Down
2 changes: 1 addition & 1 deletion pubnub/endpoints/objects_v2/uuid/remove_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def validate_specific_params(self):
def create_response(self, envelope) -> PNRemoveUUIDMetadataResult:
return PNRemoveUUIDMetadataResult(envelope)

def sync(self):
def sync(self) -> PNRemoveUUIDMetadataResultEnvelope:
return PNRemoveUUIDMetadataResultEnvelope(super().sync())

def operation_type(self):
Expand Down
2 changes: 1 addition & 1 deletion pubnub/endpoints/objects_v2/uuid/set_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def validate_specific_params(self):
def create_response(self, envelope) -> PNSetUUIDMetadataResult:
return PNSetUUIDMetadataResult(envelope)

def sync(self):
def sync(self) -> PNSetUUIDMetadataResultEnvelope:
return PNSetUUIDMetadataResultEnvelope(super().sync())

def operation_type(self):
Expand Down

0 comments on commit a4f849f

Please sign in to comment.