Skip to content

Commit 095f27f

Browse files
authored
Python: Remove deprecated annotations
1 parent 2071061 commit 095f27f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

python/ql/lib/semmle/python/Exprs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ class Store extends Store_ { }
738738
class Del extends Del_ { }
739739

740740
/** This is an artifact of the Python grammar which includes an AugLoad context, even though it is never used. */
741-
library class AugLoad extends AugLoad_ { }
741+
class AugLoad extends AugLoad_ { }
742742

743743
/** Augmented store context, the context of var in var += 1 */
744744
class AugStore extends AugStore_ { }

python/ql/lib/semmle/python/filters/GeneratedCode.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class GeneratedFile extends File {
1414
* There is no formal reason for the above, it just seems to work well in practice.
1515
*/
1616

17-
library class GenericGeneratedFile extends GeneratedFile {
17+
class GenericGeneratedFile extends GeneratedFile {
1818
GenericGeneratedFile() {
1919
not this instanceof SpecificGeneratedFile and
2020
(
@@ -103,7 +103,7 @@ private predicate auto_generated(File f) {
103103
/**
104104
* A file generated by a template engine
105105
*/
106-
abstract library class SpecificGeneratedFile extends GeneratedFile {
106+
abstract class SpecificGeneratedFile extends GeneratedFile {
107107
/*
108108
* Currently cover Spitfire, Pyxl and Mako.
109109
* Django templates are not compiled to Python.

python/ql/lib/semmle/python/objects/TObject.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ predicate common_module_name(string name) { name = ["zope.interface", "six.moves
453453
* This acts as a helper for ClassObjectInternal allowing some lookup without
454454
* recursion.
455455
*/
456-
library class ClassDecl extends @py_object {
456+
class ClassDecl extends @py_object {
457457
ClassDecl() {
458458
this.(Builtin).isClass() and not this = Builtin::unknownType()
459459
or

python/ql/lib/semmle/python/pointsto/PointsTo.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ private import semmle.python.types.Builtins
88
private import semmle.python.types.Extensions
99

1010
/* Use this version for speed */
11-
library class CfgOrigin extends @py_object {
11+
class CfgOrigin extends @py_object {
1212
/** Gets a textual representation of this element. */
1313
string toString() {
1414
/* Not to be displayed */

python/ql/src/Expressions/Formatting/AdvancedFormatting.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import python
22

33
/** A string constant that looks like it may be used in string formatting operations. */
4-
library class PossibleAdvancedFormatString extends StrConst {
4+
class PossibleAdvancedFormatString extends StrConst {
55
PossibleAdvancedFormatString() { this.getText().matches("%{%}%") }
66

77
private predicate field(int start, int end) {

0 commit comments

Comments
 (0)