Fix a bug in Generic.__new__ (GH-6758)

2 files changed