You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a Sequence[str] or Collection[str] is bad since a str also fits those and you usually want this to refer to a Set[str], List[str], Tuple[str, ...], etc.
In #14716@reivilibre added a StrCollection type which we can re-use for this.
This has bit us a few times in the past but I'm failing to find references at the moment.
It would be good to audit Sequence[str] and Collection[str] and see if any of those should be updated.
The text was updated successfully, but these errors were encountered:
This issue has been migrated from #14809.
Using a
Sequence[str]
orCollection[str]
is bad since astr
also fits those and you usually want this to refer to aSet[str]
,List[str]
,Tuple[str, ...]
, etc.In #14716 @reivilibre added a
StrCollection
type which we can re-use for this.This has bit us a few times in the past but I'm failing to find references at the moment.
It would be good to audit
Sequence[str]
andCollection[str]
and see if any of those should be updated.The text was updated successfully, but these errors were encountered: