Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing: Add type annotations to exporter.py #6559

Merged
merged 1 commit into from Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/rucio/core/exporter.py
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Any

from rucio.core import rse as rse_module, distance as distance_module
from rucio.db.sqla.session import transactional_session
Expand All @@ -23,7 +23,7 @@


@transactional_session
def export_rses(vo='def', *, session: "Session"):
def export_rses(vo: str = 'def', *, session: "Session") -> dict[str, dict[str, Any]]:
"""
Export RSE data.

Expand All @@ -39,7 +39,7 @@ def export_rses(vo='def', *, session: "Session"):


@transactional_session
def export_data(vo='def', distance=True, *, session: "Session"):
def export_data(vo: str = 'def', distance: bool = True, *, session: "Session") -> dict[str, Any]:
"""
Export data.

Expand Down