A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ericvsmith/dataclasses/issues/99 below:

Should isdataclass return True for both classes and instances? · Issue #99 · ericvsmith/dataclasses · GitHub

Raised by Carl Meyer in https://mail.python.org/pipermail/python-dev/2017-November/150850.html.

I think he's probably correct. The current behavior, where it only works on instances, is surprising. The equivalent attrs API, attr.has(), returns True for both classes and instances.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4