[issue34175] typing.NamedTuple: type-checking error when "index" used as member
Keith Campbell added the comment: > It's up to the OP to file an issue there though Will do; thanks! -- ___ Python tracker <https://bugs.python.org/issue34175> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34175] typing.NamedTuple: type-checking error when "index" used as member
New submission from Keith Campbell : Find the test case below: from typing import NamedTuple class Foo(NamedTuple): alpha: int index: int This results in the following error when run through type-checking with mypy: % mypy --version mypy 0.620 % mypy go.py go.py:5: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Tuple[int, ...], Any, int, int], int]") When I instantiate this class in the python interpreter, I have no problem accessing the "index" member, so I suspect this is a bug in the type checker. -- components: Library (Lib) messages: 322038 nosy: campkeith priority: normal severity: normal status: open title: typing.NamedTuple: type-checking error when "index" used as member versions: Python 3.6 ___ Python tracker <https://bugs.python.org/issue34175> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6796] invalid print in tkinter\test\test_ttk\test_widgets.py
Keith Campbell added the comment: You are correct. Thanks. Keith -- ___ Python tracker <http://bugs.python.org/issue6796> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6796] invalid print in tkinter\test\test_ttk\test_widgets.py
New submission from Keith Campbell : Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> RESTART >>> >>> RESTART >>> Traceback (most recent call last): File "C:\Python31\Lib\tkinter\test\test_ttk\test_widgets.py", line 4, in from test.support import requires, run_unittest File "c:\spring2000\o7python\lib\test.py", line 33 print 'Main process exiting.' ^ SyntaxError: invalid syntax -- components: Tkinter messages: 92040 nosy: keithc severity: normal status: open title: invalid print in tkinter\test\test_ttk\test_widgets.py type: behavior versions: Python 3.1 ___ Python tracker <http://bugs.python.org/issue6796> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com