Skip to content
Merged
3 changes: 2 additions & 1 deletion .github/workflows/add-issue-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
# Only ever run once
- opened

permissions: {}
permissions:
contents: read

jobs:
add-header:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
- 'main'
- '3.*'

permissions: {}
permissions:
contents: read

concurrency:
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
Expand Down Expand Up @@ -612,6 +613,7 @@ jobs:
needs.build-context.outputs.run-ci-fuzz == 'true'
|| needs.build-context.outputs.run-ci-fuzz-stdlib == 'true'
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/jit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ on:
paths: *paths
workflow_dispatch:

permissions: {}
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Lint

on: [push, pull_request, workflow_dispatch]

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ on:
- "Tools/requirements-dev.txt"
workflow_dispatch:

permissions: {}
permissions:
contents: read

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/new-bugs-announce-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
types:
- opened

permissions: {}
permissions:
contents: read

jobs:
notify-new-bugs-announce:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/require-pr-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
pull_request:
types: [opened, reopened, labeled, unlabeled, synchronize]

permissions: {}
permissions:
contents: read

jobs:
label-dnm:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-check-c-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Reusable C API Docs Check
on:
workflow_call:

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-check-html-ids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Reusable check HTML IDs
on:
workflow_call:

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
required: true
type: string

permissions: {}
permissions:
contents: read

jobs:
cifuzz:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ on: # yamllint disable-line rule:truthy
description: Whether to run the Windows tests
value: ${{ jobs.compute-changes.outputs.run-windows-tests }} # bool

permissions: {}
permissions:
contents: read

jobs:
compute-changes:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
workflow_call:
workflow_dispatch:

permissions: {}
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Reusable Emscripten
on:
workflow_call:

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
required: true
type: string

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-san.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
type: boolean
default: false

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ on:
type: string
default: ''

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-wasi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Reusable WASI
on:
workflow_call:

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-windows-msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
required: true
type: string

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ on:
required: true
type: string

permissions: {}
permissions:
contents: read

env:
FORCE_COLOR: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
schedule:
- cron: "0 */6 * * *"

permissions: {}
permissions:
contents: read

jobs:
stale:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tail-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
paths: *paths
workflow_dispatch:

permissions: {}
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/verify-ensurepip-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
- '.github/workflows/verify-ensurepip-wheels.yml'
- 'Tools/build/verify_ensurepip_wheels.py'

permissions: {}
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/verify-expat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
- 'Modules/expat/**'
- '.github/workflows/verify-expat.yml'

permissions: {}
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
6 changes: 3 additions & 3 deletions Doc/library/sys.monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
.. note::

:mod:`!sys.monitoring` is a namespace within the :mod:`sys` module,
not an independent module, so there is no need to
``import sys.monitoring``, simply ``import sys`` and then use
``sys.monitoring``.
not an independent module, and ``import sys.monitoring`` would fail
with a :exc:`ModuleNotFoundError`. Instead, simply ``import sys``
and then use ``sys.monitoring``.


This namespace provides access to the functions and constants necessary to
Expand Down
2 changes: 1 addition & 1 deletion Include/internal/pycore_ceval.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ _PyCallMethodDescriptorFastWithKeywords_StackRef(
int total_args);

PyAPI_FUNC(PyObject *)
_Py_CallBuiltinClass_StackRefSteal(
_Py_CallBuiltinClass_StackRef(
_PyStackRef callable,
_PyStackRef *arguments,
int total_args);
Expand Down
8 changes: 4 additions & 4 deletions Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading