MCPcopy Index your code
hub / github.com/go-python/gopy / isErrorType

Function isErrorType

bind/utils.go:23–25  ·  view source on GitHub ↗
(typ types.Type)

Source from the content-addressed store, hash-verified

21)
22
23func isErrorType(typ types.Type) bool {
24 return typ == types.Universe.Lookup("error").Type()
25}
26
27func isStringer(obj types.Object) bool {
28 switch obj := obj.(type) {

Callers 6

isPyCompatVarFunction · 0.85
isPyCompatTypeFunction · 0.85
isPyCompatFuncFunction · 0.85
addInterfaceTypeMethod · 0.85
hasErrorFunction · 0.85
genFuncBodyMethod · 0.85

Calls 1

LookupMethod · 0.80

Tested by

no test coverage detected