Skip to content

Commit f870b21

Browse files
committed
Python: Use Builtin::special for floats ClassValue
We could find no reason for using `Builtin::builtin` instead of `Builtin::special`. Since all the other base types use `special`, and the old Object API is using `special`, let's also do that :)
1 parent b858962 commit f870b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ module ClassValue {
572572

573573
/** Get the `ClassValue` for the `float` class. */
574574
ClassValue float_() {
575-
result = TBuiltinClassObject(Builtin::builtin("float"))
575+
result = TBuiltinClassObject(Builtin::special("float"))
576576
}
577577

578578
/** Get the `ClassValue` for the `bytes` class (also called `str` in Python 2). */

0 commit comments

Comments
 (0)