Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ _unpack_tuple
Function
_unpack_tuple
numpy/core/_exceptions.py:10–14 ·
view source on GitHub ↗
(tup)
Source
from the content-addressed store, hash-verified
8
from
.._utils
import
set_module
9
10
def
_unpack_tuple(tup):
11
if
len(tup) == 1:
12
return
tup[0]
13
else
:
14
return
tup
15
16
17
def
_display_as_base(cls):
Callers
1
__str__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected