mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Merge pull request #2030 from jf205/python-docs-fixes
Learn QL: QL for Python doc fixes for 1.22
This commit is contained in:
@@ -173,7 +173,7 @@ Many of the results shown will have ``cls`` as ``NoneType``. It is more informat
|
||||
not cls.hasAttribute("__iter__")
|
||||
select loop, cls, origin
|
||||
|
||||
➤ `See this in the query console <https://lgtm.com/query/6718356557331218618/>`__. This reports the same results, but with a third column showing the source of the ``None`` values.
|
||||
➤ `See this in the query console <https://lgtm.com/query/3795352249440053606/>`__. This reports the same results, but with a third column showing the source of the ``None`` values.
|
||||
|
||||
Finding calls using call-graph analysis
|
||||
----------------------------------------------------
|
||||
|
||||
@@ -72,7 +72,7 @@ An ``if`` statement where one branch is composed of just ``pass`` statements cou
|
||||
|
||||
To find statements like this we can run the following query:
|
||||
|
||||
**Find ``if`` statements with empty branches**
|
||||
**Find 'if' statements with empty branches**
|
||||
|
||||
.. code-block:: ql
|
||||
|
||||
|
||||
Reference in New Issue
Block a user