Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion aiohttp_devtools/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def formatMessage(self, record: logging.LogRecord) -> str:

def formatException(self, ei: _Ei) -> str:
sio = StringIO()
traceback.print_exception(*ei, file=sio) # type: ignore[misc]
traceback.print_exception(*ei, file=sio)
stack = sio.getvalue()
sio.close()
if self.stream_is_tty and pyg_lexer:
Expand Down
4 changes: 2 additions & 2 deletions aiohttp_devtools/runserver/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def static_path_str(self) -> Optional[str]:
return str(self.static_path) if self.static_path else None

@property
def client_ssl_context(self) -> Union[SSLContext, None]:
client_ssl_context = None
def client_ssl_context(self) -> Union[SSLContext, bool]:
client_ssl_context: Union[SSLContext, bool] = True
if self.protocol == "https":
client_ssl_context = create_default_ssl_context()
if self.ssl_rootcert_file_path:
Expand Down
2 changes: 1 addition & 1 deletion aiohttp_devtools/runserver/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, config: Config):
self._reloads = 0
self._session: Optional[ClientSession] = None
self._runner = None
self._client_ssl_context: Union[None, SSLContext] = None
self._client_ssl_context: Union[bool, SSLContext] = True
assert self._config.watch_path

super().__init__(self._config.watch_path)
Expand Down
Loading