forked from encode/uvicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: mypy issues * fix setup.cfg * fix run() type hint on app parameter
- Loading branch information
Showing
9 changed files
with
46 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import typing | ||
|
||
from uvicorn.supervisors.basereload import BaseReload | ||
from uvicorn.supervisors.multiprocess import Multiprocess | ||
|
||
try: | ||
from uvicorn.supervisors.watchgodreload import WatchGodReload as ChangeReload | ||
except ImportError: # pragma: no cover | ||
from uvicorn.supervisors.statreload import StatReload as ChangeReload | ||
if typing.TYPE_CHECKING: | ||
ChangeReload: typing.Type[BaseReload] # pragma: no cover | ||
else: | ||
try: | ||
from uvicorn.supervisors.watchgodreload import WatchGodReload as ChangeReload | ||
except ImportError: # pragma: no cover | ||
from uvicorn.supervisors.statreload import StatReload as ChangeReload | ||
|
||
__all__ = ["Multiprocess", "ChangeReload"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters