Skip to content

python: remove library annotation to clean up QL warnings. #7788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions python/ql/lib/semmle/python/AstExtended.qll
Original file line number Diff line number Diff line change
Expand Up @@ -62,33 +62,33 @@ abstract class AstNode extends AstNode_ {

/* Parents */
/** Internal implementation class */
library class FunctionParent extends FunctionParent_ { }
class FunctionParent extends FunctionParent_ { }

/** Internal implementation class */
library class ArgumentsParent extends ArgumentsParent_ { }
class ArgumentsParent extends ArgumentsParent_ { }

/** Internal implementation class */
library class ExprListParent extends ExprListParent_ { }
class ExprListParent extends ExprListParent_ { }

/** Internal implementation class */
library class ExprContextParent extends ExprContextParent_ { }
class ExprContextParent extends ExprContextParent_ { }

/** Internal implementation class */
library class StmtListParent extends StmtListParent_ { }
class StmtListParent extends StmtListParent_ { }

/** Internal implementation class */
library class StrListParent extends StrListParent_ { }
class StrListParent extends StrListParent_ { }

/** Internal implementation class */
library class ExprParent extends ExprParent_ { }
class ExprParent extends ExprParent_ { }

/** Internal implementation class */
class PatternListParent extends PatternListParent_ { }

/** Internal implementation class */
library class PatternParent extends PatternParent_ { }
class PatternParent extends PatternParent_ { }

library class DictItem extends DictItem_, AstNode {
class DictItem extends DictItem_, AstNode {
override string toString() { result = DictItem_.super.toString() }

override AstNode getAChildNode() { none() }
Expand Down Expand Up @@ -171,9 +171,9 @@ class ExprList extends ExprList_ {
/** A list of patterns */
class PatternList extends PatternList_ { }

library class DictItemList extends DictItemList_ { }
class DictItemList extends DictItemList_ { }

library class DictItemListParent extends DictItemListParent_ { }
class DictItemListParent extends DictItemListParent_ { }

/** A list of strings (the primitive type string not Bytes or Unicode) */
class StringList extends StringList_ { }
Expand Down
Loading