Skip to content

Commit 9468055

Browse files
committed
error: Incompatible return value type fixed
1 parent ed575a4 commit 9468055

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎physics/diffraction.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def intensity_double_slit(path_diff:int=0,intensity_max:str|float="I0")->str:
7171
str or float: The intensity of the diffraction pattern.
7272
7373
>>> intensity_double_slit(0, 1)
74-
4.0
74+
'4.0'
7575
>>> intensity_double_slit(0.001, 1)
76-
3.999999000000084
76+
'3.99999000000084'
7777
>>> intensity_double_slit(0)
7878
'4.0 I0'
7979
"""

0 commit comments

Comments
 (0)