enthought / chaco

Chaco is a Python package for building interactive and custom 2-D plots.
http://docs.enthought.com/chaco/
Other
291 stars 101 forks source link

Typo in base_2d_plot.py #914

Open markasbach opened 1 month ago

markasbach commented 1 month ago

Problem Description

Introduced with Pull Request #590, there are two typos in the Chaco source code for base_2d_plot.py, where was accidentally replaced with obseve() instead of observe():

https://github.com/enthought/chaco/pull/590/files#diff-a35ae3f2ef1d62bd589db77c070fd771be90934c6d4025589545b66c1bc5a3e6

Affected lines are still in the current release of Chaco (6.0.0): https://github.com/enthought/chaco/blob/5101e34072eba0de6f72947a432da9f04032d27d/chaco/base_2d_plot.py#L343

Despite this place, there seem to be no other identical typos: https://github.com/search?q=repo%3Aenthought%2Fchaco%20obseve&type=code

        if old is not None:
            old.obseve(self._update_index_data, "data_changed", remove=True)
        if new is not None:
            new.obseve(self._update_index_data, "data_changed")

OS, Python version: [Enter OS name and Python version]

Independent of Python or OS.