Answers for "how to add optional argument in python typing"

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

Code answers related to "how to add optional argument in python typing"

Python Answers by Framework

Browse Popular Code Answers by Language