Coretex
coretex.codable.descriptor.KeyDescriptor Class Reference

Public Member Functions

bool isList (self)
 

Detailed Description

    Defines how json filed should be represented in python

Definition at line 21 of file descriptor.py.

Member Function Documentation

◆ isList()

bool coretex.codable.descriptor.KeyDescriptor.isList (   self)
    Checks if descriptor represents a list or not

    Returns
    -------
    bool -> True if it does, False otherwise

Definition at line 42 of file descriptor.py.

42  def isList(self) -> bool:
43  """
44  Checks if descriptor represents a list or not
45 
46  Returns
47  -------
48  bool -> True if it does, False otherwise
49  """
50 
51  return self.collectionType is not None and issubclass(self.collectionType, list)

The documentation for this class was generated from the following file: