Answers for "python optional type"

1

python typing optional

from typing import Optional

class Example:
  required_field_1: str
  required_field_2: int
  optional_field: Optional[str]
Posted by: Guest on August-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language