is_list

Returns True if annotation is a List.

Signature:

def is_list(annotation: object) -> bool:
...

Parameters:

  1. annotation:

    Type
    object