forked from username/flaskpaste
fix: resolve all mypy type errors
This commit is contained in:
@@ -18,6 +18,7 @@ import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import time
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -25,10 +26,9 @@ import pytest
|
||||
# This allows the file to be collected without requiring 'requests'
|
||||
_INTEGRATION_ENABLED = bool(os.environ.get("FLASKPASTE_INTEGRATION"))
|
||||
|
||||
requests: Any = None
|
||||
if _INTEGRATION_ENABLED:
|
||||
import requests
|
||||
else:
|
||||
requests = None # type: ignore[assignment]
|
||||
import requests # type: ignore[import-untyped,no-redef]
|
||||
|
||||
# Configuration
|
||||
CONTAINER_NAME = "flaskpaste-test"
|
||||
|
||||
Reference in New Issue
Block a user