Skip to content

Commit

Permalink
Don't use typings.Type as it breaks things on Python 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Apr 15, 2017
1 parent d34c3c4 commit 95433c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions asphalt/feedreader/component.py
@@ -1,5 +1,5 @@
import logging
from typing import Dict, Type, Union, Any
from typing import Dict, Union, Any

import aiohttp
from asphalt.core import Component, Context, PluginContainer, merge_config, qualified_name
Expand All @@ -12,8 +12,7 @@
logger = logging.getLogger(__name__)


async def create_feed(ctx: Context, reader: Union[str, Type[FeedReader]] = None,
**reader_args) -> FeedReader:
async def create_feed(ctx: Context, reader: Union[str, type] = None, **reader_args) -> FeedReader:
"""
Create and start a syndication feed.
Expand Down

0 comments on commit 95433c4

Please sign in to comment.