ESCOMP / ESCOMP/CAM-SIMA

Replace "type()" with "type().__name__" in python error messages

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
enhancement misc
Dominant language
No language data
Stars
9
Forks
22
Avg merge
8d 5h
Merged PRs (30d)
4

Description

During the CAMDEN configure and build stages there are numerous python type-checks which throw an error describing what the variable type is and what it should be. In general this is done using code like:

`print(type(x))`

Which if `x` is a string results in something like:

``

However, that could be confusing to users who are not particularly familiar with python. Instead one could do:

`print(type(x).__name__))`

which results in:

`'str'`

which would hopefully make the error message easier to understand, at least for non-python users.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.