Skip to content

Comments

Type hinting#3

Open
Sooshiance wants to merge 4 commits intoKrypto-Hashers-Community:mainfrom
Sooshiance:type-hinting
Open

Type hinting#3
Sooshiance wants to merge 4 commits intoKrypto-Hashers-Community:mainfrom
Sooshiance:type-hinting

Conversation

@Sooshiance
Copy link

I've added a missed import, do some type hinting & ruff formating

@@ -1,4 +1,4 @@
import os
# import os
Copy link

Choose a reason for hiding this comment

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

Remove unused import, please

import logging
from pathlib import Path
from typing import Dict, Optional
from typing import Dict
Copy link

Choose a reason for hiding this comment

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

Use dict() instead of importing and using Dict - Unless it's a python version compatibility workaround

Comment on lines +3 to +4
# If you don't use import, comment them
# import sys
Copy link

Choose a reason for hiding this comment

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

Remove this comment and the commented out import. Both are unnecessary

from typing import Dict

from main import USBDetector
from config import *
Copy link

Choose a reason for hiding this comment

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

Using "... import *" is in general considered bad practice. Please try importing exact names

Copy link

@rennf93 rennf93 left a comment

Choose a reason for hiding this comment

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

Needs minimal changes

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