Skip to content

Commit 42edfb2

Browse files
committed
update to use List type hinting
1 parent 8b99a69 commit 42edfb2

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

mythic/mythic.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def update_callback(
244244
sleep_info: str = None,
245245
locked: bool = None,
246246
description: str = None,
247-
ips: list[str] = None,
247+
ips: List[str] = None,
248248
user: str = None,
249249
host: str = None,
250250
os: str = None,
@@ -2266,13 +2266,13 @@ async def create_tag(mythic: mythic_classes.Mythic,
22662266
source: str = "",
22672267
url: str = "",
22682268
data: str = "",
2269-
credential_ids: list[int] = None,
2270-
filemeta_ids: list[int] = None,
2271-
keylog_ids: list[int] = None,
2272-
mythictree_ids: list[int] = None,
2273-
response_ids: list[int] = None,
2274-
task_ids: list[int] = None,
2275-
taskartifact_ids: list[int] = None) -> list[dict]:
2269+
credential_ids: List[int] = None,
2270+
filemeta_ids: List[int] = None,
2271+
keylog_ids: List[int] = None,
2272+
mythictree_ids: List[int] = None,
2273+
response_ids: List[int] = None,
2274+
task_ids: List[int] = None,
2275+
taskartifact_ids: List[int] = None) -> List[dict]:
22762276
def get_mutation(target_object: str) -> str:
22772277
return f"""
22782278
mutation createTag($tagtype_id: Int!, $source: String!, $url: String!, $data: jsonb!, ${target_object}: Int!) {{

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# This call to setup() does all the work
1212
setup(
1313
name="mythic",
14-
version="0.1.0rc8",
14+
version="0.1.0rc9",
1515
description="Interact with Mythic C2 Framework Instances",
1616
long_description=README,
1717
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)