Skip to content

Commit

Permalink
remove type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Feb 4, 2025
1 parent 7ca43f1 commit 83945a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validphys2/src/validphys/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import logging
import numbers
import pathlib
from typing import Union

import pandas as pd

Expand Down Expand Up @@ -149,13 +148,14 @@ def _check_pdf_usable(self, pdf_name: str):

@element_of("pdfs")
@_id_with_label
def parse_pdf(self, name: Union[str, PDF], unpolarized_bc=None):
def parse_pdf(self, name, unpolarized_bc=None):
"""A PDF set installed in LHAPDF.
If an unpolarized boundary condition it defined, it will be registered as part of the PDF.
If ``name`` is already an instance of a vp PDF object, return it unchanged.
"""
# This allows passing pdf objects to the validphys API
# NB: for reportengine to check the inputs, name should have type: Union[str, PDF]
# to be changed when support for older versions of python is dropped
if isinstance(name, PDF):
return name
pdf = self._check_pdf_usable(name)
Expand Down

0 comments on commit 83945a9

Please sign in to comment.