From cd0b6adfb8a4d63e35a11d532ee3c6e9b36d7d6d Mon Sep 17 00:00:00 2001 From: Drew Lipiecki Date: Thu, 26 Jun 2025 11:17:35 -0500 Subject: [PATCH] add Sendable conformance requirements for Parsable Types to build cleanly with swift 6 --- .../ArgumentParser/Parsable Types/ExpressibleByArgument.swift | 2 +- Sources/ArgumentParser/Parsable Types/ParsableArguments.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ArgumentParser/Parsable Types/ExpressibleByArgument.swift b/Sources/ArgumentParser/Parsable Types/ExpressibleByArgument.swift index 33d81e19..e4523d82 100644 --- a/Sources/ArgumentParser/Parsable Types/ExpressibleByArgument.swift +++ b/Sources/ArgumentParser/Parsable Types/ExpressibleByArgument.swift @@ -10,7 +10,7 @@ //===----------------------------------------------------------------------===// /// A type that can be expressed as a command-line argument. -public protocol ExpressibleByArgument { +public protocol ExpressibleByArgument: Sendable { /// Creates a new instance of this type from a command-line-specified /// argument. init?(argument: String) diff --git a/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift b/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift index 7a476999..47d55c12 100644 --- a/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift +++ b/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift @@ -13,7 +13,7 @@ /// /// When you implement a `ParsableArguments` type, all properties must be declared with /// one of the four property wrappers provided by the `ArgumentParser` library. -public protocol ParsableArguments: Decodable { +public protocol ParsableArguments: Decodable, Sendable { /// Creates an instance of this parsable type using the definitions /// given by each property's wrapper. init()