Skip to content

Commit fdc881d

Browse files
committed
Fix issue with Python2 and class functions
1 parent c567daa commit fdc881d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projectq/cengines/_graphmapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class defaults(object):
5959
Class containing default values for some options
6060
"""
6161
#: Defaults to :py:func:`.look_ahead_parallelism_cost_fun`
62-
cost_fun = look_ahead_parallelism_cost_fun
62+
cost_fun = staticmethod(look_ahead_parallelism_cost_fun)
6363
max_swap_steps = 30
6464

6565

0 commit comments

Comments
 (0)