typedargs/typeinfo.py
def is_known_format(self, type, format):
        """
        Check if format is known for given type.

        Returns boolean indicating if format is valid for the specified type.
        """

        typeobj = self.get_type(type)

        formatter = "format_%s" % str(format)
        if not hasattr(typeobj, formatter):
            return False

        return True
def is_known_format(self, type, format):
        """
        Check if format is known for given type.

        Returns boolean indicating if format is valid for the specified type.
        """

        typeobj = self.get_type(type)

        formatter = "format_%s" % str(format)
        if not hasattr(typeobj, formatter):
            return False

        return True
def is_known_format ( self , type , format ) : typeobj = self . get_type ( type ) formatter = "format_%s" % str ( format ) if not hasattr ( typeobj , formatter ) : return False return True
Check if format is known for given type.

        Returns boolean indicating if format is valid for the specified type.
Check if format is known for given type .