Skip to content

fix: correct type hints and undefined variable in utils#190

Merged
jboursier-mwb merged 1 commit into
Malwarebytes:mainfrom
Avicennasis:docs/fix-typos
Jun 30, 2026
Merged

fix: correct type hints and undefined variable in utils#190
jboursier-mwb merged 1 commit into
Malwarebytes:mainfrom
Avicennasis:docs/fix-typos

Conversation

@Avicennasis

Copy link
Copy Markdown
Contributor

Summary

Fix 3 bugs across 3 files:

  • src/ghas_cli/utils/network.py: Use Any (typing) instead of any (builtin) in check_response type hint
  • src/ghas_cli/utils/roles.py: Fix undefined organization variable to use org parameter in create_role()
  • src/ghas_cli/utils/export.py: Add missing from typing import Dict import used in function signature

These are functional fixes — any vs Any is a type-hint bug, the organization reference would cause a NameError at runtime, and the missing Dict import would also cause a NameError.

- network.py: use `Any` (typing) instead of `any` (builtin) in check_response signature
- roles.py: fix undefined `organization` variable to use `org` parameter in create_role()
- export.py: add missing `from typing import Dict` import used in function signature
@jboursier-mwb jboursier-mwb merged commit 9366798 into Malwarebytes:main Jun 30, 2026
8 of 9 checks passed
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