This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""A simple tool to add the name of downloaded paper pdf's in front of the id. | |
(Written by fabrice.normandin@gmail.com) | |
If there are multiple downloads of same paper, replaces the original with the | |
latest download. This can be useful in a downloads folder filled with copies. | |
For instance: | |
""" | |
import glob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import inspect | |
from dataclasses import dataclass, field, Field, fields | |
from typing import Any, Callable, TypeVar, overload | |
from logging import getLogger as get_logger | |
logger = get_logger("conditional_fields") | |
T = TypeVar("T") |