Skip to content

Commit

Permalink
future annotations in a few files, so it works fine on python 3.8 still
Browse files Browse the repository at this point in the history
  • Loading branch information
brondsem committed Mar 8, 2024
1 parent 1ced114 commit 2f38593
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Allura/allura/lib/markdown_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.

from __future__ import annotations
import re
import logging
from typing import List
Expand Down
1 change: 1 addition & 0 deletions Allura/allura/lib/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'''
Allura plugins for authentication and project registration
'''
from __future__ import annotations
import re
import os
import logging
Expand Down
1 change: 1 addition & 0 deletions Allura/allura/lib/widgets/discuss.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from __future__ import annotations

from formencode import validators as fev

Expand Down
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ select = [
"PGH", # https://github.com/pre-commit/pygrep-hooks
"T10", # debugger breakpoints
"T20", # print()
"FA", # future annotations (to ensure compatibility with `target-version`)
]

ignore = [
Expand Down

0 comments on commit 2f38593

Please sign in to comment.