[Python-ideas] Re: Consider moving abstract method checking logic from ABCMeta into object

2022-02-08 Thread Neil Girdhar
On Tue, Feb 8, 2022 at 5:50 AM Paul Moore wrote: > On Tue, 8 Feb 2022 at 00:09, Neil Girdhar wrote: > > > > Currently, some type checkers rightly complain that a method is > decorated with abc.abstractmethod when the class's type does not inherit > from ABCMeta. Adding a metaclass is a fairly

[Python-ideas] Re: Consider moving abstract method checking logic from ABCMeta into object

2022-02-08 Thread Paul Moore
On Tue, 8 Feb 2022 at 00:09, Neil Girdhar wrote: > > Currently, some type checkers rightly complain that a method is decorated > with abc.abstractmethod when the class's type does not inherit from ABCMeta. > Adding a metaclass is a fairly heavy dependency since you're forced to poison > all