pdns icon indicating copy to clipboard operation
pdns copied to clipboard

Non-callable (string) called - A call to an object which is not a callable will raise a TypeError at runtime.

Open jsoref opened this issue 1 month ago • 0 comments

https://github.com/check-spelling-sandbox/pdns/security/quality/rules/py%2Fcall-to-non-callable

https://github.com/PowerDNS/pdns/blob/93edc7bd31032e0b40d948d259e5fa038c145324/pdns/keyroller/pdnsapi/metadata.py#L2-L5

type is a string argument on line 2. line 5 has forgotten that it declared an argument of type string called type and is now trying (but failing) to use the built-in type method.

jsoref avatar Nov 13 '25 04:11 jsoref