Descriptor '__subclasses__' of 'type' object needs an argument

Hi,
Kindly help me resolve this problem
descriptor ‘subclasses’ of ‘type’ object needs an argument

I am importing some libraries on jupyter

Is this issue caused by an import of a PyTorch module? If so, could you please post the lines of code showing the imports and, if possible, a minimal code snippet to reproduce this issue?

Thank you so much for your reply. Following are my imports and I am trying to implement this code GitHub - tjmoon0104/pytorch-tiny-imagenet: pytorch-tiny-imagenet for ResNet18_64

import torch, os
import torch.nn as nn
import torch.optim as optim
import torchvision.datasets as datasets
import torch.utils.data as data
import torchvision.transforms as transforms
import torchvision.models as models
from train_model import train_model
from test_model import test_model
%matplotlib inline

None of these imports raises the error, when I execute them (and copy the missing definitions) in my setup.
Did you verify that these imports are causing the issue?

Thank you so much for your reply, kindly check the attached screenshots


Thanks for the update. It seems the error is raised in the livelossplot package, so you could create an issue in their repository.
Based on this issue in typing it seems that newer Python versions would fix this issue (or you could also try to update typing).