Skip to content

Commit 162a222

Browse files
committed
Info: Remove TypeError for improbable scenario
A TypeError was being raised if a class attribute with a default had been set to a falsish value. While possible, it is very improbable, and other errors will result.
1 parent 6bc7126 commit 162a222

File tree

1 file changed

+0
-3
lines changed
  • coala_quickstart/info_extraction

1 file changed

+0
-3
lines changed

coala_quickstart/info_extraction/Info.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ def __init__(self,
2121
:param extractor: ``InfoExtractor`` instance used to extract the
2222
information.
2323
"""
24-
if not self.value_type:
25-
self.value_type = (object,)
26-
2724
assert_type_signature(value, self.value_type, 'value')
2825
self.source = source
2926
self._value = value

0 commit comments

Comments
 (0)