Fix setup resource class
Fix type hint