##// END OF EJS Templates
Let %autoreload work on modules with frozen dataclasses...
Let %autoreload work on modules with frozen dataclasses See Issue #12411 and Issue #12185. The problem is that a frozen `dataclasses.dataclass` overrides the `__setattr__()` method, so updating its `__class__` member requires going through the base `object` class. This seems to fix the problem.

File last commit:

r11336:24b78a4d
r27716:becb905f
Show More
__main__.py
14 lines | 464 B | text/x-python | PythonLexer
# encoding: utf-8
"""Terminal-based IPython entry point.
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2012, IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
from IPython import start_ipython
start_ipython()