We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3eea35 commit af6e93bCopy full SHA for af6e93b
pylint_django/transforms/fields.py
@@ -35,6 +35,11 @@ def apply_type_shim(cls, context=None):
35
base_node = MANAGER.ast_from_module_name('decimal').lookup('Decimal')
36
elif cls.name in ('SplitDateTimeField', 'DateTimeField'):
37
base_node = MANAGER.ast_from_module_name('datetime').lookup('datetime')
38
+ # XXX: for some reason, with python3, this particular line triggers a
39
+ # check in the StdlibChecker for deprecated methods; one of these nodes
40
+ # is an ImportFrom which has no qname() method, causing the checker
41
+ # to die...
42
+ base_node = (base_node[0], base_node[1][:-1])
43
elif cls.name == 'TimeField':
44
base_node = MANAGER.ast_from_module_name('datetime').lookup('time')
45
elif cls.name == 'DateField':
0 commit comments