Skip to content

Commit

Permalink
Don't use Python 3.6 variable annotation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaensch committed Jan 24, 2018
1 parent 22e681a commit f09b40b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bravado_asyncio/http_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import logging
from collections import Mapping
from typing import Optional
from typing import Optional # noqa

import aiohttp
from aiohttp.formdata import FormData
Expand All @@ -22,7 +22,7 @@


# module variable holding the current ClientSession, so that we can share it between AsyncioClient instances
client_session: Optional[aiohttp.ClientSession] = None
client_session = None # type: Optional[aiohttp.ClientSession]


def get_client_session(loop: asyncio.AbstractEventLoop) -> aiohttp.ClientSession:
Expand Down
4 changes: 2 additions & 2 deletions bravado_asyncio/thread_loop.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"""Module for creating a separate thread with an asyncio event loop running inside it."""
import asyncio
import threading
from typing import Optional
from typing import Optional # noqa


# module variable holding a reference to the event loop
event_loop: Optional[asyncio.AbstractEventLoop] = None
event_loop = None # type: Optional[asyncio.AbstractEventLoop]


def run_event_loop(loop: asyncio.AbstractEventLoop) -> None:
Expand Down

0 comments on commit f09b40b

Please sign in to comment.