Determines the callable which will perform the cast given a string representation of the type. :param cast_type: Type of the cast to perform. :type cast_type: ``str`` :rtype: ``callable``
(cast_type)
| 100 | |
| 101 | |
| 102 | def get_cast(cast_type): |
| 103 | """ |
| 104 | Determines the callable which will perform the cast given a string representation |
| 105 | of the type. |
| 106 | |
| 107 | :param cast_type: Type of the cast to perform. |
| 108 | :type cast_type: ``str`` |
| 109 | |
| 110 | :rtype: ``callable`` |
| 111 | """ |
| 112 | return CASTS.get(cast_type, None) |