Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make numba.types.Optional __str__ less verbose.
As title. Whilst well intentioned, the verbose string repr makes
it harder to debug issues with Optional types.
  • Loading branch information
stuartarchibald committed Nov 19, 2021
commit ef661c45050debb6f6ffe99cf1b4031ab24d81da
3 changes: 0 additions & 3 deletions numba/core/types/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ def __init__(self, typ):
name = "OptionalType(%s)" % self.type
super(Optional, self).__init__(name)

def __str__(self):
return "%s i.e. the type '%s or None'" % (self.name, self.type)

@property
def key(self):
return self.type
Expand Down