File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 45
45
46
46
47
47
- repo : https://github.com/asottile/pyupgrade
48
- rev : v3.19.1
48
+ rev : v3.20.0
49
49
hooks :
50
50
- id : pyupgrade
51
51
args :
81
81
- id : auto-walrus
82
82
83
83
- repo : https://github.com/astral-sh/ruff-pre-commit
84
- rev : " v0.11.4 "
84
+ rev : " v0.12.2 "
85
85
hooks :
86
86
- id : ruff
87
87
types_or :
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ ignore = [
188
188
" PD013" , # "melt over stack": df function, but triggers on tensors
189
189
" NPY002" , # "Use rnd generator in numpy" -> we use np.random for some legacy stuff but do use the new one where we can
190
190
" T201" , # "print used" -> we use print for displaying information in verbose mode
191
+ " PLC0415" , # Import-outside-top-level
191
192
192
193
]
193
194
isort.required-imports = [" from __future__ import annotations" ]
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
from collections .abc import Iterable
4
- from typing import TYPE_CHECKING , Optional , Union
4
+ from typing import TYPE_CHECKING , Union
5
5
6
6
if TYPE_CHECKING :
7
7
import tf_pwa
13
13
14
14
from .variables import params_from_fcn
15
15
16
- ParamType = Optional [ Union [ZfitParameter , Iterable [ZfitParameter ]]]
16
+ ParamType = Union [ZfitParameter , Iterable [ZfitParameter ]] | None
17
17
18
18
19
19
def nll_from_fcn (fcn : tf_pwa .model .FCN , * , params : ParamType = None ):
You can’t perform that action at this time.
0 commit comments