Skip to content

Conversation

ujjawal-sk
Copy link

No description provided.

Copy link

Copy link
Collaborator

@jranaskit jranaskit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments.

scalekit/role.py Outdated

def __init__(self, core_client: CoreClient):
"""
Initializer for Organization Client
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update this doc string.

scalekit/role.py Outdated
self, organization_id: str, role_id: str
) -> UpdateOrganizationRoleResponse:
"""
Method to update organization based on given data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update doc string to match method func.

scalekit/role.py Outdated
self, organization_id: str, role_id: str
) -> GetOrganizationRoleResponse:
"""
Method to update organization based on given data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update doc string and doc params to match method def and func

GROUPS_FIELD_NUMBER: _ClassVar[int]
USER_DETAIL_FIELD_NUMBER: _ClassVar[int]
id: str | None
id: Optional[str]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not change it to older pythonic way. Please revert to original.

scalekit/role.py Outdated


class RoleClient:
"""Class definition for Organization Client"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update this doc string too, check if there are any other which are not matching function/class definitions.

from google.protobuf.internal import containers as _containers
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, \
Union as _Union
Union as _Union, Optional
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove unused imports.

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.

2 participants