| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks, LG!
Sorry, something went wrong.
Co-Authored-By: Ivan Levkivskyi <levkivskyi@gmail.com>
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
The error traceback:
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/site-packages/discrete_optimization/tsp/tsp_model.py:267: in <module>
class Point2D(Point, NamedTuple):
/opt/hostedtoolcache/Python/3.9.12/x64/lib/python3.9/typing.py:1929: in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
E TypeError: Multiple inheritance with NamedTuple is not supported
Coming from python/cpython#19363
Potential solution: replace NamedTuple by Dataclass(frozen=True)
remove double inheritance with NamedTuple to avoid TypeError, as per python 3.9: python/cpython#19363
This doesn't work in Python >=3.9 until Python 3.11. Multiple inheritance with `NamedTuple` has limited support. See: * python/cpython#19363 * python/cpython#88089 * python/cpython#92027
…rid (MCR #90132) (#99) * Add bindings for `GLOBAL_MIN_HEIGHT` and `GLOBAL_MAX_HEIGHT` Expose the C++ constants `isce3::core::GLOBAL_MIN_HEIGHT` and `isce3::core::GLOBAL_MAX_HEIGHT` to Python. * Add function to compute radar grid spanning a geo grid * Simplify radar grid construction by ignoring grid coordinate conventions See the discussion on this comment: https://github-fn.jpl.nasa.gov/isce-3/isce/pull/2097#discussion_r26503 * Un-parameterize `Rectangle` This doesn't work in Python >=3.9 until Python 3.11. Multiple inheritance with `NamedTuple` has limited support. See: * python/cpython#19363 * python/cpython#88089 * python/cpython#92027 * Add `look_side` to be a string * Simplify error messages * Rename inner function to avoid name ambiguity * Fix test regexes * Add test cases for antimeridian and pole crossing * Explain dummy parameter values used in test * Test `get_bounding_rectangle()` with +/-inf * Rename inner function to avoid name ambiguity * Update docstrings * Swap inner/outer loop order * Specify default geo2rdr tolerance * Clarify isce3 projection description
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue36517