Dec. 23, 2021
5:08 p.m.
Thanks both. … did the trick, I’d have never thought to use it there. Best D Sent with ProtonMail Secure Email. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, December 22nd, 2021 at 19:22, Eric Traut <eric@traut.com> wrote:
While it's not legal to use `P` in the subscript expression in your example, you can use `(...)` instead. This means "a signature that accepts any parameters". This works in conjunction with `Concatenate`. I think that addresses your use case.
class Foo: some_callable: SomeCallableType[(...)]
-Eric
Typing-sig mailing list -- typing-sig@python.org
To unsubscribe send an email to typing-sig-leave@python.org
https://mail.python.org/mailman3/lists/typing-sig.python.org/
Member address: layday@protonmail.com