Gianni Mariani added the comment:
Excellent. Thanks!
--
___
Python tracker
<https://bugs.python.org/issue44674>
___
___
Python-bugs-list mailing list
Unsub
Gianni Mariani added the comment:
@Arjun - this is about default values (See the bug description - Using a
frozendict as a default value)
Try this:
from frozendict import frozendict
from dataclasses import dataclass
@dataclass
class A:
a: frozendict = frozendict(a=1)
This used to work
New submission from Gianni Mariani :
Using a frozendict as a default value should not cause an error in dataclasses.
The check for mutability is:
isinstance(f.default, (list, dict, set))
It appears frozendict has been changed to have a dict base class and it now
raises an exception
Change by Gianni Mariani :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue40586>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Gianni Mariani :
pydoc has a regex hard coded for supporting hyperlinks. It supports http and
ftp. It should support https.
--
components: Demos and Tools
messages: 368601
nosy: owebeeone
priority: normal
severity: normal
status: open
title: Pydoc should support