MCPcopy
hub / github.com/Instagram/LibCST / Not

Class Not

libcst/_nodes/op.py:313–323  ·  view source on GitHub ↗

A unary operator that can be used in a :class:`UnaryOperation` expression.

Source from the content-addressed store, hash-verified

311@add_slots
312@dataclass(frozen=True)
313class Not(BaseUnaryOp):
314 """
315 A unary operator that can be used in a :class:`UnaryOperation`
316 expression.
317 """
318
319 #: Any space that appears directly after this operator.
320 whitespace_after: BaseParenthesizableWhitespace = SimpleWhitespace.field(" ")
321
322 def _get_token(self) -> str:
323 return "not"
324
325
326@add_slots

Callers 1

convert_not_testFunction · 0.90

Calls 1

fieldMethod · 0.80

Tested by

no test coverage detected