Fix typehint in DescriptorAbstract->setErrors()

Also remove code from FileDescriptor that is implemented in parent
class DescriptorAbstract
Merge pull request #803 from tommygnr/fix-typehint

Fix typehint in DescriptorAbstract->setErrors()