Language Features

PyNumbers

Python stdlib module — numbers. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.abstractmethod()Neutral
#
Signature
abstractmethod(funcobj)

A decorator indicating abstract methods.

.ABCMeta()Neutral
#
Signature
ABCMeta(...)

Metaclass for defining Abstract Base Classes (ABCs).

.Complex()Neutral
#
Signature
Complex(...)

Complex defines the operations that work on the builtin complex type.

.Integral()Neutral
#
Signature
Integral(...)

Integral adds methods that work on integral numbers.

.Number()Neutral
#
Signature
Number(...)

All numbers inherit from this class.

.Rational()Neutral
#
Signature
Rational(...)

.numerator and .denominator should be in lowest terms.

.Real()Neutral
#
Signature
Real(...)

To Complex, Real adds the operations that work on real numbers.

Fully-Qualified Names

FQNField
numbersfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import numbers