File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 15
15
""" # NOQA: E501
16
16
from __future__ import absolute_import , print_function , unicode_literals
17
17
18
- import collections
19
18
import logging
20
19
import os
21
20
import re
21
+ from typing import NamedTuple
22
22
23
23
from . import exc
24
24
from ._compat import urlparse
25
25
from .base import BaseRepo
26
26
27
27
logger = logging .getLogger (__name__ )
28
28
29
- GitRemote = collections .namedtuple ('GitRemote' , ['name' , 'fetch_url' , 'push_url' ])
30
- """Structure containing git repo information.
31
29
32
- Supports `collections.namedtuple._asdict()`
33
- """
30
+ class GitRemote (NamedTuple ):
31
+ """Structure containing git repo information.
32
+
33
+ Supports `collections.namedtuple._asdict()`
34
+ """
35
+
36
+ name : str
37
+ fetch_url : str
38
+ push_url : str
34
39
35
40
36
41
def extract_status (value ):
You can’t perform that action at this time.
0 commit comments