Commit 3ddcbd0
authored
bs4: Make
Make `Tag.attrs` more permissive to be in line with actual code
`Tag.attrs` is a dict can technically have `list[str]` as a valid value, not just `str`. Making the value type a union with `Any` allows `list[str]` to be valid in a type checker's eyes if a user narrows it.
Based on discussion in, and fixes, #8755.Tag.attrs more permissive (#11487)1 parent 1f3cf14 commit 3ddcbd0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
0 commit comments