pylint-bot / test

0 stars 0 forks source link

Understand virtual base classes #193

Open pylint-bot opened 8 years ago

pylint-bot commented 8 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)


#!python

import abc

class MyInt(metaclass=abc.ABCMeta):
   pass

print(MyInt.register(int))
print(issubclass(int, MyInt)) # should return True