Skip to content

Commit

Permalink
datum: don't use @OverRide decorator (only availabel from 3.12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Persaud committed Oct 18, 2024
1 parent 6e15a39 commit 2681392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pymcnp/files/inp/datum.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""

import re
from typing import Union, override, Final
from typing import Union, Final
from enum import StrEnum

from .card import Card
Expand Down Expand Up @@ -1171,8 +1171,8 @@ def __init__(self, volumes: tuple[float], has_no: bool = False):
self.has_no = has_no
self.volumes = volumes

@override
def to_mcnp(self) -> str:
"""Overrides the baseclass function."""
if self.has_no:
return f"vol no {' '.join(str(volume) for volume in self.volumes)}"
else:
Expand Down

0 comments on commit 2681392

Please sign in to comment.