Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Python 3.9 #5489

Merged
merged 3 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.7', '3.8']
python: ['3.7', '3.8', '3.9']

steps:
- name: Setup Python
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fixed the docstring information for the `FBetaMultiLabelMeasure` metric.
- Various fixes for Python 3.9

## [v2.8.0](https://github.com/allenai/allennlp/releases/tag/v2.8.0) - 2021-11-01

Expand Down
4 changes: 1 addition & 3 deletions allennlp/common/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ def __new__(cls, filename: Union[str, PathLike], *, read_only: bool = False, **k
except FileNotFoundError:
result = None
if result is None:
result = super(TensorCache, cls).__new__(
cls, filename, read_only=read_only, **kwargs
) # type: ignore
result = super(TensorCache, cls).__new__(cls)
return result

def __init__(
Expand Down