File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,25 +37,14 @@ repos:
3737 rev : v3.18.0
3838 hooks :
3939 - id : pyupgrade
40- args : [--py38-plus]
41- name : Upgrade code excluding monai networks
40+ args : [--py38-plus, --keep-runtime-typing ]
41+ name : Upgrade code with exceptions
4242 exclude : |
4343 (?x)(
4444 ^versioneer.py|
45- ^monai/_version.py|
46- ^monai/networks/| # no PEP 604 for torchscript tensorrt
47- ^monai/losses/| # no PEP 604 for torchscript tensorrt
48- ^monai/data/utils.py|
49- ^monai/data/grid_dataset.py
45+ ^monai/_version.py
5046 )
51- - id : pyupgrade
52- args : [--py38-plus, --keep-runtime-typing]
53- name : Upgrade monai networks
54- files : (?x)(
55- ^monai/networks/|
56- ^monai/data/utils.py|
57- ^monai/data/grid_dataset.py
58- )
47+
5948
6049 - repo : https://github.com/asottile/yesqa
6150 rev : v1.5.0
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def __init__(
7979 Incompatible values.
8080
8181 """
82- super (HausdorffDTLoss , self ).__init__ (reduction = LossReduction (reduction ).value )
82+ super ().__init__ (reduction = LossReduction (reduction ).value )
8383 if other_act is not None and not callable (other_act ):
8484 raise TypeError (f"other_act must be None or callable but is { type (other_act ).__name__ } ." )
8585 if int (sigmoid ) + int (softmax ) > 1 :
You can’t perform that action at this time.
0 commit comments