formatter typehint of prettify
Bug #2108993 reported by
Laurent Baillet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
hello
with bs4 in its last version (4.13.4) and previous type hinted versions, I think that there is a problem with the formatter parameter in the prettify method as it is typed :
_FormatterOrName = Union[Formatter, str]
but the documentation mentions the possibility to pass None
Regards
To post a comment you must log in.
Contributed fix merged in revision 426be3ec6ce0ee6 599ab6e6c221edf 425ed45c2f.