ignore missing imports
This commit is contained in:
parent
2cb39ae27f
commit
991a24bce8
@ -766,7 +766,7 @@ class Config(Base):
|
|||||||
"""
|
"""
|
||||||
if self.env_file:
|
if self.env_file:
|
||||||
try:
|
try:
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv # pyright: ignore [reportMissingImports]
|
||||||
|
|
||||||
# load env file if exists
|
# load env file if exists
|
||||||
load_dotenv(self.env_file, override=True)
|
load_dotenv(self.env_file, override=True)
|
||||||
|
@ -295,9 +295,11 @@ def run_granian_backend(host, port, loglevel: LogLevel):
|
|||||||
"""
|
"""
|
||||||
console.debug("Using Granian for backend")
|
console.debug("Using Granian for backend")
|
||||||
try:
|
try:
|
||||||
from granian import Granian
|
from granian import Granian # pyright: ignore [reportMissingImports]
|
||||||
from granian.constants import Interfaces
|
from granian.constants import (
|
||||||
from granian.log import LogLevels
|
Interfaces, # pyright: ignore [reportMissingImports]
|
||||||
|
)
|
||||||
|
from granian.log import LogLevels # pyright: ignore [reportMissingImports]
|
||||||
|
|
||||||
Granian(
|
Granian(
|
||||||
target=get_granian_target(),
|
target=get_granian_target(),
|
||||||
@ -413,7 +415,9 @@ def run_granian_backend_prod(host, port, loglevel):
|
|||||||
from reflex.utils import processes
|
from reflex.utils import processes
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from granian.constants import Interfaces
|
from granian.constants import (
|
||||||
|
Interfaces, # pyright: ignore [reportMissingImports]
|
||||||
|
)
|
||||||
|
|
||||||
command = [
|
command = [
|
||||||
"granian",
|
"granian",
|
||||||
|
Loading…
Reference in New Issue
Block a user