From f12f66a69c5982a04d66c1869baf12ca713e5de7 Mon Sep 17 00:00:00 2001 From: Claudia Ng Date: Mon, 2 Oct 2023 20:50:16 -0700 Subject: [PATCH] Remove trailing white space --- .../01_type_hints_for_one_piece_of_data.py | 2 -- .../02_type_hints_for_multiple_pieces_of_data.py | 2 -- python-type-hints-multiple-types/05_type_hints_for_generator.py | 2 -- 3 files changed, 6 deletions(-) diff --git a/python-type-hints-multiple-types/01_type_hints_for_one_piece_of_data.py b/python-type-hints-multiple-types/01_type_hints_for_one_piece_of_data.py index 9d5d2403ff..d34f0dba50 100644 --- a/python-type-hints-multiple-types/01_type_hints_for_one_piece_of_data.py +++ b/python-type-hints-multiple-types/01_type_hints_for_one_piece_of_data.py @@ -6,8 +6,6 @@ def parse_email(email_address: str) -> str | None: # from typing import Union -# -# # def parse_email(email_address: str) -> Union[str, None]: # if "@" in email_address: # username, domain = email_address.split("@") diff --git a/python-type-hints-multiple-types/02_type_hints_for_multiple_pieces_of_data.py b/python-type-hints-multiple-types/02_type_hints_for_multiple_pieces_of_data.py index 0d7e534454..37a41c0b91 100644 --- a/python-type-hints-multiple-types/02_type_hints_for_multiple_pieces_of_data.py +++ b/python-type-hints-multiple-types/02_type_hints_for_multiple_pieces_of_data.py @@ -6,8 +6,6 @@ def parse_email(email_address: str) -> tuple[str, str] | None: # from typing import Tuple, Union -# -# # def parse_email(email_address: str) -> Union[Tuple[str, str], None]: # if "@" in email_address: # username, domain = email_address.split("@") diff --git a/python-type-hints-multiple-types/05_type_hints_for_generator.py b/python-type-hints-multiple-types/05_type_hints_for_generator.py index fd1378a725..7013ac2c44 100644 --- a/python-type-hints-multiple-types/05_type_hints_for_generator.py +++ b/python-type-hints-multiple-types/05_type_hints_for_generator.py @@ -30,8 +30,6 @@ def parse_emails(emails: list[str]) -> Iterator[tuple[str, str]]: # from collections.abc import Iterable -# -# # def parse_emails(emails: Iterable[str]) -> Iterable[tuple[str, str]]: # for email in emails: # if "@" in email: