Skip to content

[FIX] widgets/tests: Compatibility with Python 3.5.{0,1}#2575

Merged
astaric merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/typing-compat
Sep 11, 2017
Merged

[FIX] widgets/tests: Compatibility with Python 3.5.{0,1}#2575
astaric merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/typing-compat

Conversation

@ales-erjavec
Copy link
Copy Markdown
Contributor

Issue

typing.Type was introduced only in Python 3.5.2

Description of changes

try-except the import.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link
Copy Markdown

codecov-io commented Sep 11, 2017

Codecov Report

Merging #2575 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2575      +/-   ##
==========================================
+ Coverage   75.02%   75.02%   +<.01%     
==========================================
  Files         327      327              
  Lines       57639    57641       +2     
==========================================
+ Hits        43246    43248       +2     
  Misses      14393    14393

typing.Type was introduced in Python 3.5.2
@astaric astaric merged commit d37f88c into biolab:master Sep 11, 2017
@janezd
Copy link
Copy Markdown
Contributor

janezd commented Sep 11, 2017

I'm stupid -- of course we don't need to import it if it's not there; it appears just in the comments. :)

@ales-erjavec ales-erjavec deleted the fixes/typing-compat branch November 14, 2017 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants