Skip to content

Commit 94e90aa

Browse files
committed
Python: Only one Unit implementation
Conflict arose since the Unit in DataFlowPrivate was added in a merged PR. The behavior from this PR will make it match what java does (https://github.com/github/codeql/blob/931322e4c5c05e150bed41cb837e8ecc23c32427/java/ql/src/semmle/code/Unit.qll)
1 parent 1eac199 commit 94e90aa

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,14 +1151,5 @@ predicate isImmutableOrUnobservable(Node n) { none() }
11511151

11521152
int accessPathLimit() { result = 5 }
11531153

1154-
/** The unit type. */
1155-
private newtype TUnit = TMkUnit()
1156-
1157-
/** The trivial type with a single element. */
1158-
class Unit extends TUnit {
1159-
/** Gets a textual representation of this element. */
1160-
string toString() { result = "unit" }
1161-
}
1162-
11631154
/** Holds if `n` should be hidden from path explanations. */
11641155
predicate nodeIsHidden(Node n) { none() }

0 commit comments

Comments
 (0)