Skip to content

Commit

Permalink
widgets/tests: Compatibility with Python 3.5.{0,1}
Browse files Browse the repository at this point in the history
typing.Type was introduced in Python 3.5.2
  • Loading branch information
ales-erjavec committed Sep 11, 2017
1 parent e42c898 commit 24edd0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Orange/widgets/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
import unittest
from unittest.mock import Mock
# pylint: disable=unused-import
from typing import List, Optional, Type, TypeVar
from typing import List, Optional, TypeVar
try:
from typing import Type # typing.Type was added in 3.5.2
except ImportError: # pragma: no cover
pass

import numpy as np
import sip
Expand Down

0 comments on commit 24edd0c

Please sign in to comment.