Update project configuration and dependencies
- Added `.vscode` to `.gitignore` to exclude Visual Studio Code settings. - Updated `pyproject.toml` to include `ruff` for linting and configured its settings. - Modified `uv.lock` to include `ruff` in both optional and development dependencies. - Refactored type hints in several files to use `str | None` for optional parameters. - Cleaned up unused imports and whitespace in various modules for improved code clarity.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from typing import Optional
|
||||
from requests.adapters import HTTPAdapter
|
||||
from urllib3.util import Retry
|
||||
|
||||
@@ -6,7 +5,7 @@ from urllib3.util import Retry
|
||||
class OxiAdapter(HTTPAdapter):
|
||||
def __init__(
|
||||
self,
|
||||
timeout: Optional[int] = None,
|
||||
timeout: int | None = None,
|
||||
max_retries: int = 3,
|
||||
*args,
|
||||
**kwargs,
|
||||
|
||||
Reference in New Issue
Block a user