epy.is_namedtuple

epy.is_namedtuple#

etils.epy.is_namedtuple(x) bool[source]

Returns True if the value is instance of NamedTuple.

This is using some heuristic by checking for a ._field attribute.

Parameters:

x – Object to check

Returns:

True if the object is a namedtuple