-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating argo-wrapper dependencies #151
Conversation
@@ -405,7 +418,7 @@ def get_workflows_for_team_project(self, team_project: str) -> List[Dict]: | |||
workflows = self.get_workflows_for_label_selector(label_selector=label_selector) | |||
return workflows | |||
|
|||
def get_workflows_for_user(self, auth_header: str) -> List[Dict]: | |||
def get_workflows_for_user(self, auth_header: Optional[str]) -> List[Dict]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def get_workflows_for_user(self, auth_header: Optional[str]) -> List[Dict]: | |
def get_workflows_for_user(self, auth_header: str) -> List[Dict]: |
I don't think auth_header
is optional here, and probably also not optional in most other places where it is now marked as optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's because of this, the get
can return None
, so it expects it to be Optional
:
auth_header=request.headers.get("Authorization"),
In short, we need better type annotations.
Co-authored-by: pieterlukasse <[email protected]>
Link to JIRA ticket if there is one: VADC-1508
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes