Skip to content

Commit

Permalink
Feature/remove default arguments warning for volume extension (osrf#292)
Browse files Browse the repository at this point in the history
* add: type hints for parser argument

---------

Co-authored-by: Tully Foote <[email protected]>
  • Loading branch information
blooop and tfoote authored Oct 16, 2024
1 parent 3f02bdc commit 3c9ea15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rocker/volume_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from argparse import ArgumentParser
from argparse import ArgumentTypeError
import os
from rocker.extensions import RockerExtension
Expand Down Expand Up @@ -61,7 +62,7 @@ def get_docker_args(self, cli_args):
return ' '.join(args)

@staticmethod
def register_arguments(parser, defaults):
def register_arguments(parser: ArgumentParser, defaults: dict):
parser.add_argument(Volume.ARG_ROCKER_VOLUME,
metavar='HOST-DIR[:CONTAINER-DIR[:OPTIONS]]',
type=str,
Expand Down

0 comments on commit 3c9ea15

Please sign in to comment.