Allow key None to prevent errors with import test.

pull/73017/head
Felix Fontein 4 years ago committed by Matt Clay
parent 850a77f639
commit dbc2c996ab

@ -13,7 +13,7 @@ import string
# Python 3.9 fails with pylint 2.3.1 or 2.4.4 with astroid 2.3.3 but works with pylint 2.5.0 and astroid 2.4.0 # Python 3.9 fails with pylint 2.3.1 or 2.4.4 with astroid 2.3.3 but works with pylint 2.5.0 and astroid 2.4.0
# 'Call' object has no attribute 'value' # 'Call' object has no attribute 'value'
result = {}[{}.get('something')] result = {None: None}[{}.get('something')]
# pylint 2.3.1 and 2.4.4 report the following error but 2.5.0 and 2.6.0 do not # pylint 2.3.1 and 2.4.4 report the following error but 2.5.0 and 2.6.0 do not
# blacklisted-name: Black listed name "foo" # blacklisted-name: Black listed name "foo"

Loading…
Cancel
Save