diff --git a/.all-contributorsrc b/.all-contributorsrc index 13c08e99f6..441d337db6 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -907,10 +907,10 @@ "contributions": ["code", "bug"] }, { - "login": "kaizen3031593", + "login": "kaizencc", "name": "Kaizen Conroy", "avatar_url": "https://avatars.githubusercontent.com/u/36202692?v=4", - "profile": "https://github.com/kaizen3031593", + "profile": "https://github.com/kaizencc", "contributions": ["code", "bug"] }, { @@ -1151,12 +1151,145 @@ "profile": "http://adrianhesketh.com/", "contributions": ["code"] }, + { + "login": "sirrus233", + "name": "Bradley Sherman", + "avatar_url": "https://avatars.githubusercontent.com/u/8885220?v=4", + "profile": "https://github.com/sirrus233", + "contributions": ["code"] + }, { "login": "sudolibre", "name": "Jon Day", "avatar_url": "https://avatars.githubusercontent.com/u/20878393?v=4", "profile": "https://sudolibre.github.io/", "contributions": ["code"] + }, + { + "login": "mrgrain", + "name": "Momo Kornher", + "avatar_url": "https://avatars.githubusercontent.com/u/379814?v=4", + "profile": "https://moritzkornher.de/", + "contributions": ["code"] + }, + { + "login": "yuth", + "name": "Yathi", + "avatar_url": "https://avatars.githubusercontent.com/u/511386?v=4", + "profile": "https://github.com/yuth", + "contributions": ["code"] + }, + { + "login": "vinayak-kukreja", + "name": "Vinayak Kukreja", + "avatar_url": "https://avatars.githubusercontent.com/u/78971045?v=4", + "profile": "https://github.com/vinayak-kukreja", + "contributions": ["code"] + }, + { + "login": "TimothyJones", + "name": "Timothy Jones", + "avatar_url": "https://avatars.githubusercontent.com/u/914369?v=4", + "profile": "https://github.com/TimothyJones", + "contributions": ["bug"] + }, + { + "login": "kichik", + "name": "Amir Szekely", + "avatar_url": "https://avatars.githubusercontent.com/u/1156773?v=4", + "profile": "https://kichik.com/", + "contributions": ["maintenance"] + }, + { + "login": "andrestone", + "name": "AndrΓ© Fontenele", + "avatar_url": "https://avatars.githubusercontent.com/u/7958086?v=4", + "profile": "https://github.com/andrestone", + "contributions": ["code"] + }, + { + "login": "colifran", + "name": "Colin Francis", + "avatar_url": "https://avatars.githubusercontent.com/u/131073567?v=4", + "profile": "https://github.com/colifran", + "contributions": ["maintenance"] + }, + { + "login": "eric-hc", + "name": "Eric Carboni", + "avatar_url": "https://avatars.githubusercontent.com/u/1885157?v=4", + "profile": "https://github.com/eric-hc", + "contributions": ["doc"] + }, + { + "login": "wafuwafu13", + "name": "Hirotaka Tagawa / wafuwafu13", + "avatar_url": "https://avatars.githubusercontent.com/u/50798936?v=4", + "profile": "https://github.com/wafuwafu13", + "contributions": ["code"] + }, + { + "login": "huyphan", + "name": "Huy Phan (Harry)", + "avatar_url": "https://avatars.githubusercontent.com/u/95884?v=4", + "profile": "http://zepvn.com/", + "contributions": ["code"] + }, + { + "login": "TheRealAmazonKendra", + "name": "Kendra Neil", + "avatar_url": "https://avatars.githubusercontent.com/u/53584728?v=4", + "profile": "https://github.com/aws/aws-cdk", + "contributions": ["maintenance"] + }, + { + "login": "moelasmar", + "name": "Mohamed Elasmar", + "avatar_url": "https://avatars.githubusercontent.com/u/71043312?v=4", + "profile": "https://github.com/moelasmar", + "contributions": ["code"] + }, + { + "login": "pahud", + "name": "Pahud Hsieh", + "avatar_url": "https://avatars.githubusercontent.com/u/278432?v=4", + "profile": "https://github.com/pahud", + "contributions": ["code"] + }, + { + "login": "ryparker", + "name": "Ryan Parker", + "avatar_url": "https://avatars.githubusercontent.com/u/17558268?v=4", + "profile": "https://github.com/ryparker", + "contributions": ["code"] + }, + { + "login": "khushail", + "name": "Shailja Khurana", + "avatar_url": "https://avatars.githubusercontent.com/u/117320115?v=4", + "profile": "https://github.com/khushail", + "contributions": ["maintenance"] + }, + { + "login": "andyaaz", + "name": "andyan", + "avatar_url": "https://avatars.githubusercontent.com/u/24879322?v=4", + "profile": "https://github.com/andyaaz", + "contributions": ["doc"] + }, + { + "login": "kellertk", + "name": "Tom Keller", + "avatar_url": "https://avatars.githubusercontent.com/u/1083460?v=4", + "profile": "https://tompkel.net/", + "contributions": ["maintenance"] + }, + { + "login": "ysuzuki19", + "name": "ysuzuki19", + "avatar_url": "https://avatars.githubusercontent.com/u/42496938?v=4", + "profile": "https://ysuzuki19.github.io/", + "contributions": ["doc"] } ], "repoType": "github", diff --git a/.mergify/config.yml b/.mergify/config.yml index db380e1c13..4eec6db900 100644 --- a/.mergify/config.yml +++ b/.mergify/config.yml @@ -11,7 +11,7 @@ pull_request_rules: label: add: [contribution/core] conditions: - - author~=^(RomainMuller|rix0rrr|Jerry-AWS|MrArnoldPalmer|iliapolo|madeline-k|comcalvi|kaizencc|corymhall|otaviomacedo|yuth|TheRealAmazonKendra|vinayak-kukreja|mrgrain|ryparker|Naumel|colifran)$ + - author~=^(RomainMuller|rix0rrr|MrArnoldPalmer|iliapolo|madeline-k|comcalvi|kaizencc|corymhall|otaviomacedo|TheRealAmazonKendra|vinayak-kukreja|mrgrain|colifran)$ - -label~="contribution/core" - name: Tell them we're good now actions: diff --git a/README.md b/README.md index 50d6bb70f2..caab67a2ab 100644 --- a/README.md +++ b/README.md @@ -78,75 +78,84 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Alex Pulver
Alex Pulver

πŸ› + Amir Szekely
Amir Szekely

🚧 Andi Pabst
Andi Pabst

πŸ› Andrew Wason
Andrew Wason

πŸ› πŸ’» + AndrΓ© Fontenele
AndrΓ© Fontenele

πŸ’» Andy Slezak
Andy Slezak

πŸ’» Ansgar Mertens
Ansgar Mertens

🚧 πŸ’» πŸ› Anshul Guleria
Anshul Guleria

πŸ€” - Ari Palo
Ari Palo

πŸ€” - Armaan Tobaccowalla
Armaan Tobaccowalla

πŸ› + Ari Palo
Ari Palo

πŸ€” + Armaan Tobaccowalla
Armaan Tobaccowalla

πŸ› BartΕ‚omiej Jurek
BartΕ‚omiej Jurek

πŸ› Ben Bridts
Ben Bridts

πŸ“– Ben Chaimberg
Ben Chaimberg

πŸ“– Ben Farr
Ben Farr

πŸ“– Ben Walters
Ben Walters

πŸ€” - Benjamin Macher
Benjamin Macher

πŸ“– - Benjamin Maizels
Benjamin Maizels

πŸ’» πŸ‘€ + Benjamin Macher
Benjamin Macher

πŸ“– + Benjamin Maizels
Benjamin Maizels

πŸ’» πŸ‘€ Bervianto Leo Pratama
Bervianto Leo Pratama

🚧 Bill Cauchois
Bill Cauchois

πŸ€” + Bradley Sherman
Bradley Sherman

πŸ’» Brecht Verhoeve
Brecht Verhoeve

πŸ€” Breland Miley
Breland Miley

πŸ’» + + CaerusKaru
CaerusKaru

πŸ’» 🚧 Calvin Combs
Calvin Combs

πŸ’» πŸ‘€ Camilo BermΓΊdez
Camilo BermΓΊdez

πŸ› - - Campion Fellin
Campion Fellin

πŸ’» Carter Van Deuren
Carter Van Deuren

πŸ› Chris Garvis
Chris Garvis

πŸ“– Christian Moore
Christian Moore

πŸ› + + Christophe Vico
Christophe Vico

πŸ› Christopher Currie
Christopher Currie

πŸ’» πŸ€” Christopher Rybicki
Christopher Rybicki

πŸ“– πŸ› πŸ’» - - + Colin Francis
Colin Francis

🚧 CommanderRoot
CommanderRoot

πŸ’» Cory Hall
Cory Hall

πŸ› Cristian MΔƒgheruΘ™an-Stanciu
Cristian Măgherușan-Stanciu

πŸ› + + CyrusNajmabadi
CyrusNajmabadi

πŸ› πŸ€” Damian Silbergleith
Damian Silbergleith

πŸ’» πŸ› Daniel Dinu
Daniel Dinu

πŸ› πŸ’» Daniel Schmidt
Daniel Schmidt

πŸ› πŸ’» - - Daniel Schroeder
Daniel Schroeder

πŸ› πŸ’» πŸ“– πŸ€” 🚧 Dave Slotnick
Dave Slotnick

πŸ› David Bell
David Bell

πŸ’» + + Donald Stufft
Donald Stufft

πŸ› πŸ’» πŸ€” πŸ‘€ Dongie Agnir
Dongie Agnir

πŸ’» πŸ‘€ Eduardo Rabelo
Eduardo Rabelo

πŸ“– Eduardo Sena S. Rosa
Eduardo Sena S. Rosa

πŸ› - - Elad Ben-Israel
Elad Ben-Israel

πŸ› πŸ’» πŸ€” 🚧 πŸ‘€ πŸ“’ Eli Polonsky
Eli Polonsky

πŸ› πŸ’» πŸ€” 🚧 πŸ‘€ + Eric Carboni
Eric Carboni

πŸ“– + + Eric Z. Beard
Eric Z. Beard

πŸ“† Erik Karlsson
Erik Karlsson

πŸ› Eugene Kozlov
Eugene Kozlov

πŸ’» Fabio Gentile
Fabio Gentile

πŸ› Florian Eitel
Florian Eitel

πŸ€” - - Glib Shpychka
Glib Shpychka

πŸ› Graham Lea
Graham Lea

πŸ€” πŸ‘€ + + Greg Lucas
Greg Lucas

πŸ’» Hamza Assyad
Hamza Assyad

πŸ› πŸ’» πŸ€” πŸ‘€ Hari Pachuveetil
Hari Pachuveetil

πŸ“ πŸ“– + Hirotaka Tagawa / wafuwafu13
Hirotaka Tagawa / wafuwafu13

πŸ’» Hsing-Hui Hsu
Hsing-Hui Hsu

πŸ’» πŸ“– πŸ€” πŸ‘€ + Huy Phan (Harry)
Huy Phan (Harry)

πŸ’» Ikko Ashimine
Ikko Ashimine

πŸ“– @@ -172,108 +181,124 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Junix
Junix

πŸ› Justin Frahm
Justin Frahm

πŸ› Justin Taylor
Justin Taylor

πŸ› - Kaizen Conroy
Kaizen Conroy

πŸ’» πŸ› + Kaizen Conroy
Kaizen Conroy

πŸ’» πŸ› Kaizen Conroy
Kaizen Conroy

πŸ’» Kaushik Borra
Kaushik Borra

πŸ› + Kendra Neil
Kendra Neil

🚧 Knut O. Hellan
Knut O. Hellan

πŸ› Kyle Thomson
Kyle Thomson

πŸ’» πŸ‘€ Leandro Padua
Leandro Padua

πŸ› Liang Zhou
Liang Zhou

πŸ› πŸ’» Madeline Kusters
Madeline Kusters

πŸ’» πŸ› Maja S Bratseth
Maja S Bratseth

πŸ› - Marcos Diez
Marcos Diez

πŸ› + Marcos Diez
Marcos Diez

πŸ› Mark Nielsen
Mark Nielsen

πŸ’» Matthew Bonig
Matthew Bonig

πŸ› πŸ“ Matthew Pirocchi
Matthew Pirocchi

πŸ’» πŸ€” πŸ‘€ Meng Xin Zhu
Meng Xin Zhu

πŸ› Michael Neil
Michael Neil

🚧 Mike Lane
Mike Lane

πŸ› - Mitch Garnaat
Mitch Garnaat

πŸ› πŸ’» πŸ€” πŸ‘€ + Mitch Garnaat
Mitch Garnaat

πŸ› πŸ’» πŸ€” πŸ‘€ Mitchell Valine
Mitchell Valine

πŸ› πŸ’» πŸ€” 🚧 πŸ‘€ Mohamad Soufan
Mohamad Soufan

πŸ“– + Mohamed Elasmar
Mohamed Elasmar

πŸ’» + Momo Kornher
Momo Kornher

πŸ’» Mykola Mogylenko
Mykola Mogylenko

πŸ› Naumel
Naumel

πŸ‘€ + + Neta Nir
Neta Nir

πŸ’» πŸ€” 🚧 πŸ‘€ Nick Lynch
Nick Lynch

πŸ› πŸ’» 🚧 πŸ‘€ Niranjan Jayakar
Niranjan Jayakar

πŸ› πŸ’» πŸ€” 🚧 πŸ‘€ - - Noah Litov
Noah Litov

πŸ’» 🚧 πŸ‘€ Otavio Macedo
Otavio Macedo

πŸ’» πŸ› PIDZ - Bart
PIDZ - Bart

πŸ€” + Pahud Hsieh
Pahud Hsieh

πŸ’» + + Peter Woodworth
Peter Woodworth

🚧 Petr Kacer
Petr Kacer

πŸ› Petra Barus
Petra Barus

πŸ’» Philip Cali
Philip Cali

πŸ€” - - Quentin Loos
Quentin Loos

πŸ€” Raphael
Raphael

πŸ› Richard H Boyd
Richard H Boyd

πŸ› + + Rico Huijbers
Rico Huijbers

πŸ› πŸ’» πŸ€” 🚧 πŸ‘€ Romain Marcadier
Romain Marcadier

πŸ› πŸ’» 🎨 πŸ€” 🚧 πŸ‘€ πŸ“ + Ryan Parker
Ryan Parker

πŸ’» SADIK KUZU
SADIK KUZU

πŸ‘€ SK
SK

πŸ€” - - Sam Fink
Sam Fink

πŸ’» πŸ‘€ Sam Goodwin
Sam Goodwin

πŸ‘€ + + Sebastian Korfmann
Sebastian Korfmann

πŸ› πŸ’» πŸ€” Sepehr Laal
Sepehr Laal

πŸ› + Shailja Khurana
Shailja Khurana

🚧 Shane Witbeck
Shane Witbeck

πŸ€” Shiv Lakshminarayan
Shiv Lakshminarayan

πŸ’» 🚧 πŸ‘€ Somaya
Somaya

πŸ’» πŸ€” 🚧 πŸ‘€ + Stephen Kuenzli
Stephen Kuenzli

πŸ“– - Stephen Kuenzli
Stephen Kuenzli

πŸ“– Takahiro Sugiura
Takahiro Sugiura

πŸ“– The Gitter Badger
The Gitter Badger

πŸ’» 🚧 Thomas Poignant
Thomas Poignant

πŸ› Thomas Steinbach
Thomas Steinbach

πŸ› Thorsten Hoeger
Thorsten Hoeger

πŸ’» Tim Wagner
Tim Wagner

πŸ› πŸ€” + Timothy Jones
Timothy Jones

πŸ› Tobias Lidskog
Tobias Lidskog

πŸ’» Tom Bonner
Tom Bonner

πŸ› + Tom Keller
Tom Keller

🚧 Ty Coghlan
Ty Coghlan

πŸ› Tyler van Hensbergen
Tyler van Hensbergen

πŸ€” + Vinayak Kukreja
Vinayak Kukreja

πŸ’» Vlad Hrybok
Vlad Hrybok

πŸ› - Vladimir Shchur
Vladimir Shchur

πŸ› - Will Bender
Will Bender

πŸ› + Vladimir Shchur
Vladimir Shchur

πŸ› + Will Bender
Will Bender

πŸ› Yan Zhulanow
Yan Zhulanow

πŸ’» + Yathi
Yathi

πŸ’» Yigong Liu
Yigong Liu

πŸ› πŸ€” Zach Bienenfeld
Zach Bienenfeld

πŸ› ajnarang
ajnarang

πŸ€” + + + andyan
andyan

πŸ“– aniljava
aniljava

πŸ’» arnogeurts-sqills
arnogeurts-sqills

πŸ› πŸ’» cn-cit
cn-cit

πŸ› - - deccy-mcc
deccy-mcc

πŸ› dependabot-preview[bot]
dependabot-preview[bot]

πŸ› 🚧 dependabot[bot]
dependabot[bot]

🚧 + + dheffx
dheffx

πŸ› gregswdl
gregswdl

πŸ› guyroberts21
guyroberts21

πŸ“– mattBrzezinski
mattBrzezinski

πŸ“– - - mergify
mergify

🚧 mergify[bot]
mergify[bot]

🚧 nathannaveen
nathannaveen

🚧 + + seiyashima42
seiyashima42

πŸ› πŸ’» πŸ“– sullis
sullis

πŸ’» vaneek
vaneek

πŸ› wendysophie
wendysophie

πŸ› + ysuzuki19
ysuzuki19

πŸ“– diff --git a/packages/@jsii/python-runtime/src/jsii/_runtime.py b/packages/@jsii/python-runtime/src/jsii/_runtime.py index b8fd0e6c23..1731e19b66 100644 --- a/packages/@jsii/python-runtime/src/jsii/_runtime.py +++ b/packages/@jsii/python-runtime/src/jsii/_runtime.py @@ -79,6 +79,9 @@ def invokeBinScript( return result.returncode +M = TypeVar("M") + + class JSIIMeta(_ClassPropertyMeta, type): def __new__( cls: Type["JSIIMeta"], @@ -108,8 +111,11 @@ def __new__( return cast("JSIIMeta", obj) - def __call__(cls: Type[Any], *args: Any, **kwargs) -> Any: - inst = super().__call__(*args, **kwargs) + def __call__(cls: Type[M], *args: Any, **kwargs) -> M: + # There is no way to constrain the metaclass of a `Type[M]` hint today, so we have to + # perform a `cast` trick here in order for MyPy to accept this code as valid... The implicit + # arguments to `super()` otherwise are `super(__class__, cls)`, which results in an error. + inst = super(JSIIMeta, cast(JSIIMeta, cls)).__call__(*args, **kwargs) # Register this instance with our reference map. _reference_map.register_reference(inst)