Skip to content

Upgrade to python 3.12 in pre-commit test.#275

Closed
DaylonSrinivasan wants to merge 1 commit intofacebookresearch:mainfrom
DaylonSrinivasan:export-D78677575
Closed

Upgrade to python 3.12 in pre-commit test.#275
DaylonSrinivasan wants to merge 1 commit intofacebookresearch:mainfrom
DaylonSrinivasan:export-D78677575

Conversation

@DaylonSrinivasan
Copy link

Summary:
Pre-commit is currently running python version 3.0, which doesn't include some of the latest python syntax.

Currently failing with:

hta/common/call_stack.py:504: error: X | Y syntax for unions requires Python
3.10  [syntax]
            remapped_tids: Dict[int, Dict[int, int]] | None = None,

Differential Revision: D78677575

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 21, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78677575

DaylonSrinivasan pushed a commit to DaylonSrinivasan/HolisticTraceAnalysis that referenced this pull request Jul 21, 2025
Summary:

Pre-commit is currently running python version 3.0, which doesn't include some of the latest python syntax.

Currently failing with: 

```
hta/common/call_stack.py:504: error: X | Y syntax for unions requires Python
3.10  [syntax]
            remapped_tids: Dict[int, Dict[int, int]] | None = None,
```

Differential Revision: D78677575
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78677575

DaylonSrinivasan pushed a commit to DaylonSrinivasan/HolisticTraceAnalysis that referenced this pull request Jul 21, 2025
Summary:

Pre-commit is currently running python version 3.0, which doesn't include some of the latest python syntax.

Currently failing with: 

```
hta/common/call_stack.py:504: error: X | Y syntax for unions requires Python
3.10  [syntax]
            remapped_tids: Dict[int, Dict[int, int]] | None = None,
```

Differential Revision: D78677575
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78677575

@DaylonSrinivasan DaylonSrinivasan force-pushed the export-D78677575 branch 2 times, most recently from 7850357 to 7ccf27a Compare July 21, 2025 18:36
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78677575

DaylonSrinivasan pushed a commit to DaylonSrinivasan/HolisticTraceAnalysis that referenced this pull request Jul 21, 2025
Summary:

Pre-commit is currently running python version 3.0, which doesn't include some of the latest python syntax.

Currently failing with: 

```
hta/common/call_stack.py:504: error: X | Y syntax for unions requires Python
3.10  [syntax]
            remapped_tids: Dict[int, Dict[int, int]] | None = None,
```

The comment previously suggested to keep the python versions consistent with .circleci/config.yml. But this file was deleted in facebookresearch#211 and replaced with https://github.com/facebookresearch/HolisticTraceAnalysis/blob/main/.github/workflows/ci.yml, which uses version 3.10 and 3.12.

Differential Revision: D78677575
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78677575

DaylonSrinivasan pushed a commit to DaylonSrinivasan/HolisticTraceAnalysis that referenced this pull request Jul 21, 2025
Summary:
Pull Request resolved: facebookresearch#275

Pre-commit is currently running python version 3.0, which doesn't include some of the latest python syntax.

Currently failing with:

```
hta/common/call_stack.py:504: error: X | Y syntax for unions requires Python
3.10  [syntax]
            remapped_tids: Dict[int, Dict[int, int]] | None = None,
```

The comment previously suggested to keep the python versions consistent with .circleci/config.yml. But this file was deleted in facebookresearch#211 and replaced with https://github.com/facebookresearch/HolisticTraceAnalysis/blob/main/.github/workflows/ci.yml, which uses version 3.10 and 3.12.

Differential Revision: D78677575
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78677575

Summary:

Pre-commit is currently running python version 3.0, which doesn't include some of the latest python syntax.

Currently failing with: 

```
hta/common/call_stack.py:504: error: X | Y syntax for unions requires Python
3.10  [syntax]
            remapped_tids: Dict[int, Dict[int, int]] | None = None,
```

The comment previously suggested to keep the python versions consistent with .circleci/config.yml. But this file was deleted in facebookresearch#211 and replaced with .github/workflows/ci.yml, which uses version 3.10 and 3.12.

Differential Revision: D78677575
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78677575

@DaylonSrinivasan DaylonSrinivasan deleted the export-D78677575 branch August 5, 2025 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants