From fc2933ca648a2227457c3bd1490d34677405d065 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Tue, 16 Mar 2021 14:07:58 -0400 Subject: [PATCH] Make "addresses" argument to email.headerregistry.Group an Iterable (#5124) Fixes #5123 --- stdlib/email/headerregistry.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/email/headerregistry.pyi b/stdlib/email/headerregistry.pyi index 4ccb4d312..3294b253b 100644 --- a/stdlib/email/headerregistry.pyi +++ b/stdlib/email/headerregistry.pyi @@ -1,7 +1,7 @@ from datetime import datetime as _datetime from email.errors import MessageDefect from email.policy import Policy -from typing import Any, Dict, Mapping, Optional, Tuple, Union +from typing import Any, Dict, Iterable, Mapping, Optional, Tuple, Union class BaseHeader(str): @property @@ -86,5 +86,5 @@ class Address: class Group: display_name: Optional[str] addresses: Tuple[Address, ...] - def __init__(self, display_name: Optional[str] = ..., addresses: Optional[Tuple[Address, ...]] = ...) -> None: ... + def __init__(self, display_name: Optional[str] = ..., addresses: Optional[Iterable[Address]] = ...) -> None: ... def __str__(self) -> str: ...