From 70868e1d99c19c38386842e22a8678f17e082faf Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 10 Feb 2018 23:14:12 +0100 Subject: [PATCH] Make pylint shut up --- qutebrowser/commands/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 6dee7db91..8dd830495 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -395,10 +395,11 @@ class Command: raise TypeError("{}: Legacy tuple type annotation!".format( self.name)) elif getattr(typ, '__origin__', None) is typing.Union or ( + # Older Python 3.5 patch versions + # pylint: disable=no-member,useless-suppression hasattr(typing, 'UnionMeta') and isinstance(typ, typing.UnionMeta)): # this is... slightly evil, I know - # pylint: disable=no-member,useless-suppression try: types = list(typ.__args__) except AttributeError: