formatter typehint of prettify

Bug #2108993 reported by Laurent Baillet
6
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

Revision history for this message
Leonard Richardson (leonardr) wrote (last edit ):

Contributed fix merged in revision 426be3ec6ce0ee6599ab6e6c221edf425ed45c2f.

Changed in beautifulsoup:
status: New → Fix Committed
Revision history for this message
Laurent Baillet (laurent-baillet) wrote :

nice ! thank you

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.