CodeQL library for Python
codeql/python-all 2.2.0 (changelog, source)
Search

Module Comment

Provides classes representing comments in Python.

Import path

import semmle.python.Comment

Imports

Classes

Comment

A source code comment

CommentBlock

A block of consecutive comments

TypeHintComment

A type-hint comment. Any comment that starts with # type: