Skip to content

Add type hints on functions definition and Replace the print with logger#16

Open
devHanif-git wants to merge 4 commits into
Davi-S:QTfrom
devHanif-git:Toolorant-Fetch-From-API
Open

Add type hints on functions definition and Replace the print with logger#16
devHanif-git wants to merge 4 commits into
Davi-S:QTfrom
devHanif-git:Toolorant-Fetch-From-API

Conversation

@devHanif-git

Copy link
Copy Markdown
Contributor

No description provided.

@devHanif-git devHanif-git reopened this Feb 10, 2025
Comment thread src/game_resources.py
]

def process_maps(maps_data):
def process_maps(maps_data: List[Dict]) :

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think you accidentally deleted the return type hint

Comment thread src/game_resources.py
import enum
import requests
import logging
from typing import Callable, Dict, List, Tuple

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

use import typing as t and t.Callable, t.Dict...

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