public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/28821] New: use mypy type annotations
@ 2022-01-25 21:05 tromey at sourceware dot org
2022-01-26 13:12 ` [Bug python/28821] " fasching.a91 at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-01-25 21:05 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28821
Bug ID: 28821
Summary: use mypy type annotations
Product: gdb
Version: 11.1
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
It might be nice if gdb's Python API supplied mypy type annotations.
See http://mypy-lang.org/
Maybe this can be done via stub files:
https://mypy.readthedocs.io/en/latest/stubs.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/28821] use mypy type annotations
2022-01-25 21:05 [Bug python/28821] New: use mypy type annotations tromey at sourceware dot org
@ 2022-01-26 13:12 ` fasching.a91 at gmail dot com
2022-02-19 16:13 ` tromey at sourceware dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: fasching.a91 at gmail dot com @ 2022-01-26 13:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28821
Alexander Fasching <fasching.a91 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fasching.a91 at gmail dot com
--- Comment #1 from Alexander Fasching <fasching.a91 at gmail dot com> ---
I think stubs should be added to typeshed instead of maintaining them in the
GDB project:
https://github.com/python/typeshed
New mypy releases would then include them, so it's not necessary to mess with
mypy settings and updates would be much faster.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/28821] use mypy type annotations
2022-01-25 21:05 [Bug python/28821] New: use mypy type annotations tromey at sourceware dot org
2022-01-26 13:12 ` [Bug python/28821] " fasching.a91 at gmail dot com
@ 2022-02-19 16:13 ` tromey at sourceware dot org
2022-02-20 5:18 ` fasching.a91 at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-02-19 16:13 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28821
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Adding them to an external project seems like it would have some
drawbacks. They'd have to be maintained separately from gdb itself,
and it seems like there would be some version skew.
Is there a problem with maintaining them in gdb?
Actually I was wondering if we could use some technique
to ensure that they have to be up-to-date in the gdb tree,
like generating code from some kind of .def file or the like.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/28821] use mypy type annotations
2022-01-25 21:05 [Bug python/28821] New: use mypy type annotations tromey at sourceware dot org
2022-01-26 13:12 ` [Bug python/28821] " fasching.a91 at gmail dot com
2022-02-19 16:13 ` tromey at sourceware dot org
@ 2022-02-20 5:18 ` fasching.a91 at gmail dot com
2022-02-21 15:44 ` tromey at sourceware dot org
2022-07-08 18:55 ` tromey at sourceware dot org
4 siblings, 0 replies; 6+ messages in thread
From: fasching.a91 at gmail dot com @ 2022-02-20 5:18 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28821
--- Comment #3 from Alexander Fasching <fasching.a91 at gmail dot com> ---
You are probably right.
Maintaining it in GDB also avoids problems with different versions.
I was initially thinking about the update process. Mypy and typeshed are
updated quite often, so this would also apply for the annotations. The
annotations aren't too complicated though, so this is only a minor concern once
they are good enough.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/28821] use mypy type annotations
2022-01-25 21:05 [Bug python/28821] New: use mypy type annotations tromey at sourceware dot org
` (2 preceding siblings ...)
2022-02-20 5:18 ` fasching.a91 at gmail dot com
@ 2022-02-21 15:44 ` tromey at sourceware dot org
2022-07-08 18:55 ` tromey at sourceware dot org
4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-02-21 15:44 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28821
--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
I hadn't considered changes in mypy -- that's a good point.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/28821] use mypy type annotations
2022-01-25 21:05 [Bug python/28821] New: use mypy type annotations tromey at sourceware dot org
` (3 preceding siblings ...)
2022-02-21 15:44 ` tromey at sourceware dot org
@ 2022-07-08 18:55 ` tromey at sourceware dot org
4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2022-07-08 18:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28821
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
These are in typeshed now:
https://github.com/python/typeshed/tree/master/stubs/gdb
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-07-08 18:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 21:05 [Bug python/28821] New: use mypy type annotations tromey at sourceware dot org
2022-01-26 13:12 ` [Bug python/28821] " fasching.a91 at gmail dot com
2022-02-19 16:13 ` tromey at sourceware dot org
2022-02-20 5:18 ` fasching.a91 at gmail dot com
2022-02-21 15:44 ` tromey at sourceware dot org
2022-07-08 18:55 ` tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).